javascript - Error: Unknown provider: translateFilterProvider <- translateFilter angularjs -


i'm working on angularjs app needs have translation functionality, i've checked angular-translate library , did that's in example.

however when run code following error:

error: unknown provider: translatefilterprovider <- translatefilter 

i've included code in following jsfiddle: http://jsfiddle.net/qyqw8/1/
loaded angular-translate javascript file before calling code in fiddle (which in portal.js) order in load files:

    <script src="js/lib/angular.js"></script>     <script src="js/lib/angular-resource.js"></script>     <script src="js/lib/jquery-1.10.js"></script>     <script src="js/lib/angular-translate.js"></script>     <script src="js/portal.js"></script> 

if can me out it's highly appreciated,
in case wondered , since fiddle bit messed up, did bootstrap app

<html lang="nl" ng-app="portal"> 

thx,

j.

your fiddle bit messed (for example don't bootstrap app , other deps missing). in order use angular-translate, need declare dependency in controller:

app.controller("myctrl", function($scope, $translate) {   // stuff }); 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -