im new angularjs , experimenting jhipster framework.
i'm trying create angular module can drag , drop components. code fails @ initialisation.
what i've done:
i installed angular-dragdrop: bower install angular-dragdrop
i updated bower.json:
{ "stomp-websocket": "2.3.4", "sockjs-client": "0.3.4", "bootstrap": "3.3.4", "modernizr": "2.8.3", "jquery": "2.1.3", "json3": "3.3.2", "angular": "1.4.0", "angular-ui-router": "0.2.13", "angular-resource": "1.4.0", "angular-cookies": "1.4.0", "angular-sanitize": "1.4.0", "angular-i18n": "1.4.0", "angular-translate": "2.7.0", "angular-translate-storage-cookie": "2.7.0", "angular-translate-loader-partial": "2.7.0", "angular-dynamic-locale": "0.1.27", "angular-local-storage": "0.2.0", "swagger-ui": "2.0.24", "angular-cache-buster": "0.4.3", "nginfinitescroll": "1.2.0", "angular-bootstrap": "0.13.0", "angular-dragdrop": "1.0.11" } i updated index.html:
... <script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular-dragdrop/src/angular-dragdrop.min.js"></script>... however when try initilize module like:
angular.module('hiptestapp',['ngdragdrop']) .controller('mycontroller', function ($scope, $cookies, $http, $timeout) { }); my whole jhipster app stop working without displaying error message or whatsoever :(
i've seen dozen of examples on plunker work fine same thing if ask me.
still not work hope of can tell me wrong?
just got working :)
i needed include:
<script src="bower_components/jquery-ui/jquery-ui.js"></script> in index.html.
i forgot save in bower :(
bower install angular-dragdrop --save
bower install jquery-ui --save
and added 'ngdragdrop' in app.js argument.
Comments
Post a Comment