angularjs - angular-translate not working on templates -


i'm trying make use of angular-translate localization, i'm having issue works on home page. after clicking on link, next page isn't translated @ all.

the weird thing navbar translations(located on index.html) still translate properly, content in ngview isn't translated. controller other page empty.

enter image description here

-app.js var myapp = angular.module('myapp', ['ngroute', 'pascalprecht.translate']);  myapp.config( function ($routeprovider) {     $routeprovider.   when('/signup', {         templateurl: 'partials/signup.html',         controller: 'signupcontrollers'     }).   otherwise({         templateurl: 'partials/home.html'     }); }) .config(function ($translateprovider) { $translateprovider.usestaticfilesloader({     prefix: '/languages/',     suffix: '.json' }); $translateprovider.preferredlanguage('en'); }); 

another thing noticed default page content on home.html translated properly, other page doesn't translated properly.

plunker example - example works correctly

you have error in set preventing route not being translated loading correctly. plunkr:

error: [ng:areq] argument 'signupcontrollers' not function, got undefined 

this indicate haven't set signupcontrollers in module configuration. indeed, haven't defined controller in plunker.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -