To use the instant
method properly you have to wait until the loader will finish loading first. Just try to wrap your $translate.instant
call in $rootScope.$on('$translateChangeSuccess', function(){ })
.
转载于:https://blog.51cto.com/vabc1314/1872116