Closed ambasador closed 10 years ago
Looks like angular-animate.js is not loading. Can you share a little more info about your project structure, more specifically, your main.js
?
ok no prob
here is main.js file
require.config({
baseUrl: "js/scripts",
// alias libraries paths
paths: {
'jquery': '../lib/jquery/dist/jquery.min',
'jquery-velocity': '../lib/velocity/jquery.velocity.min',
'velocity': '../lib/velocity/velocity.min',
'velocity-ui': '../lib/velocity/velocity.ui.min',
'angular': '../lib/angular/angular',
'angular-route': '../lib/angular/angular-route',
'async': '../lib/requirejs/async',
'angularAMD': '../lib/requirejs/angularAMD',
'ngload': '../lib/requirejs/ngload',
'angular-animate': '../lib/angular/angular-animate.min',
'angular-velocity': '../lib/angular/angular-velocity.min',
'ui-bootstrap': '../lib/angular-ui-bootstrap/ui-bootstrap-tpls',
// Main controllers
'HomeController': 'controller/home_ctrl',
'ContactController': 'controller/contact_ctrl',
'AboutController': 'controller/about_ctrl',
'PortfolioController': 'controller/portfolio_ctrl',
'ItemController': 'controller/item_ctrl'
},
// Add angular modules that does not support AMD out of the box, put it in a shim
shim: {
'velocity': {
deps: ['jquery', 'jquery-velocity']
},
'velocity-ui': {
deps: ['velocity']
},
'angularAMD': ['angular'],
'angular-route': ['angular'],
'angular-animate': ['angular'],
'angular-velocity': {
deps: ['velocity-ui', 'angular-animate']
}
},
// kick start application
deps: ['app']
});
This looks right. I double checked the angularAMD tests and it does include test with ngAnimate
. Can see if you can isolate this problem within a smaller project?
You can use the following gist as a starting point: https://gist.github.com/marcoslin/df4b741e92b2829eeae8
You can run the gist using: http://bl.ocks.org/marcoslin/df4b741e92b2829eeae8
I had same problem. I resolve it by updating angular.js and angular-animate.js files. https://code.angularjs.org/1.2.26/
@ambasador I will close this issue as per comment from @skyfloyd. Do reopen if it does not solve your problem.
Hi
I just added ngAnimate like
and its throwing an error
so when i remove ngAnimate everything is ok, i try as well ngload!ngAnimate, but error is the same
here is full list