forgejs
forgejs copied to clipboard
How to use forgejs in angularjs?
Got error when I try to run this code
angularjs.controller.js
var config = { "story": { "uid": "video-story", "name": "Video Story", "slug": "video-story", "description": "", "default": "scene-0", "scenes": [...] } }; var view = new FORGE.Viewer("myVid", config);
index.html
<div id="myVid"></div>
Hi shokri! I never tried angularJS. Can you try with the non minified build to see where this error come from ? It sounds like you have a scope error. Angular tells you that FORGE is not defined ?! Have a nice day!
Hi @shokri anything new about this ? Thanks !