Open jcotero opened 6 years ago
I'm having some troubles on trying to use ui-carousel. I wasn't able to inject it yet, I got an error...
I've installed using: bower install angular-ui-carousel --save
Then I suppose I should insert these lines in index.html (it was not in the instructions)... This was what I did:
<head> (...) <script src="../bower_components/angular-ui-carousel/dist/ui-carousel.css"></script> <script src="../bower_components/angular-ui-carousel/dist/ui-carousel.js"></script> (...) </head>
Previously I tried to insert at the end of the<body> but it didn't work when I ran gulp.
<body>
Then, I've configured my app.js as:
angular.module('myProject', [ 'ui.router', 'ngResource', 'ngStorage', 'ui.carousel' ])
I didn't use any markup yet, and didn't set any configuration in the run method or whatsoever. Then, after gulp and reloading the project at the browser, I got these errors:
GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.css (index):53 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.js (index):52 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.css (index):53 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.js main.js:1556 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.5/$injector/modulerr?p0=radiogeek&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.6.5%2F%24injector%2Fmodulerr%3Fp0%3Dui.carousel%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.6.5%252F%2524injector%252Fnomod%253Fp0%253Dui.carousel%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1556%253A76%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1575%253A408%250A%2520%2520%2520%2520at%2520b%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1574%253A439)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1575%253A182%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A290%250A%2520%2520%2520%2520at%2520p%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1557%253A7)%250A%2520%2520%2520%2520at%2520g%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A138)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A322%250A%2520%2520%2520%2520at%2520p%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1557%253A7)%250A%2520%2520%2520%2520at%2520g%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A138)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1556%3A76%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1592%3A70%0A%20%20%20%20at%20p%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1557%3A7)%0A%20%20%20%20at%20g%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A138)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A322%0A%20%20%20%20at%20p%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1557%3A7)%0A%20%20%20%20at%20g%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A138)%0A%20%20%20%20at%20gb%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1595%3A251)%0A%20%20%20%20at%20c%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1571%3A19)%0A%20%20%20%20at%20Uc%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1571%3A332) at main.js:1556 at main.js:1592 at p (main.js:1557) at g (main.js:1591) at gb (main.js:1595) at c (main.js:1571) at Uc (main.js:1571) at xe (main.js:1570) at main.js:1882 at HTMLDocument.b (main.js:1587)
Can anyone give me some guidance here, please?
I'm having some troubles on trying to use ui-carousel. I wasn't able to inject it yet, I got an error...
I've installed using: bower install angular-ui-carousel --save
Then I suppose I should insert these lines in index.html (it was not in the instructions)... This was what I did:
Previously I tried to insert at the end of the
<body>
but it didn't work when I ran gulp.Then, I've configured my app.js as:
I didn't use any markup yet, and didn't set any configuration in the run method or whatsoever. Then, after gulp and reloading the project at the browser, I got these errors:
GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.css (index):53 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.js (index):52 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.css (index):53 GET http://localhost:3000/bower_components/angular-ui-carousel/dist/ui-carousel.js main.js:1556 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.5/$injector/modulerr?p0=radiogeek&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.6.5%2F%24injector%2Fmodulerr%3Fp0%3Dui.carousel%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.6.5%252F%2524injector%252Fnomod%253Fp0%253Dui.carousel%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1556%253A76%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1575%253A408%250A%2520%2520%2520%2520at%2520b%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1574%253A439)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1575%253A182%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A290%250A%2520%2520%2520%2520at%2520p%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1557%253A7)%250A%2520%2520%2520%2520at%2520g%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A138)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A322%250A%2520%2520%2520%2520at%2520p%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1557%253A7)%250A%2520%2520%2520%2520at%2520g%2520(http%253A%252F%252Flocalhost%253A3000%252Fscripts%252Fmain.js%253A1591%253A138)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1556%3A76%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1592%3A70%0A%20%20%20%20at%20p%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1557%3A7)%0A%20%20%20%20at%20g%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A138)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A322%0A%20%20%20%20at%20p%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1557%3A7)%0A%20%20%20%20at%20g%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1591%3A138)%0A%20%20%20%20at%20gb%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1595%3A251)%0A%20%20%20%20at%20c%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1571%3A19)%0A%20%20%20%20at%20Uc%20(http%3A%2F%2Flocalhost%3A3000%2Fscripts%2Fmain.js%3A1571%3A332) at main.js:1556 at main.js:1592 at p (main.js:1557) at g (main.js:1591) at gb (main.js:1595) at c (main.js:1571) at Uc (main.js:1571) at xe (main.js:1570) at main.js:1882 at HTMLDocument.b (main.js:1587)
Can anyone give me some guidance here, please?