javascript - Module 'flow' not available in angularjs app -
in app.js have included dependency flow
var myapp = angular.module('myapp',['ui.router', 'ngresource', 'flow']);
i have included javascript in index file load follows
<script type="text/javascript" src="//cdn.jsdelivr.net/flow.js/2.0.0b2/flow.js"></script>
i getting error module 'flow' not available!
uncaught error: [$injector:modulerr] failed instantiate module myapp due to: error: [$injector:modulerr] failed instantiate module flow due to: error: [$injector:nomod] module 'flow' not available! either misspelled module name or forgot load it. if registering module ensure specify dependencies sec argument. http://errors.angularjs.org/1.2.23/$injector/nomod?p0=flow
this because if want utilize ['flow'] module in angularjs have include both:flow.js , ng-flow. if using bower , configured place libraries on js/vendor have this.
bower install "ng-flow#~2" --save {{ html::script('js/vendor/flow.js/dist/flow.min.js') }} {{ html::script('js/vendor/ng-flow/dist/ng-flow.min.js') }}
if not, ng-flow cdn.
best regards!
javascript angularjs flow-js
No comments:
Post a Comment