Skip to content Skip to sidebar Skip to footer

Ngroute No Longer Working After Injecting Nganimate

I wanted to animate my application so I injected ngAnimate but now none of my views are displaying: var spApp = angular.module('spApp', ['ngRoute','ui.bootstrap', 'ngAnimate'])

Solution 1:

Your application demo in the plunker is missing the app declaration like this for example:

<bodyng-app="spApp">

There is controller or main controller defined.

<divng-controller="mainCtrl"><ng-view></ng-view></div>

More over I am not sure about your script declaration.

Here is a plunker configured:

http://plnkr.co/edit/tjDnzBu2PVSADKtbEFrL?p=preview

Here's a plunker with a few HTML files. In the original, you had "home.js" instead of "home.html", but when the partials are saved as HTML they seem to work fine.

http://plnkr.co/edit/aa6fKoBljxRHe4zVPYBl?p=preview

Solution 2:

The version between angular and animate weren't the same. Angular was 1.2.4 while animate was 1.2.10.

Upgrading angular solved the issue.

Thanks for trying.

Post a Comment for "Ngroute No Longer Working After Injecting Nganimate"