I have been building a web project, and time to time I try to publish and see everything looks like it does in localhost. This time, I added angularjs to get/display currency and deployed the project again. But, it shows {{currencies}} to users in browser.
Error: [$injector:unpr] http://errors.angularjs.org/1.5.8/$injector/unpr?p0=nProvider%20%3C-%20n%20%3C-%20CurrencyController
My angularjs code looks like this...
app.controller("CurrencyController", function ($scope, $http) {
$http.get('http://dummy.com/api/getcurrencyformainscreen').
success(function (data, status, headers, config) {
$scope.currencies = data;
}).
error(function (data, status, headers, config) {
//alert(data);
})
});
What am I doing wrong?
See Question&Answers more detail:os