I have written a Provider ('sirname')
Following controller works
app.controller("expctrl", function ($scope, sirname) {
$scope.sirName = sirname.title;
});
Now I have written a Value
app.value('applicationname', 'MyFirst Application');
and try to use it like following
--Using Provider and Value both
app.controller("expctrl", ['applicationname', function ($scope, sirname) {
$scope.sirName = sirname.title + applicationname;
}]);
it fails to resolve sirname
what is the issue?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.