Add Decorator definition to IModule

This commit is contained in:
Dmitry V. Abuzyarov
2015-05-31 15:02:01 +03:00
parent aae45edc2a
commit 3e6f6339a5
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -201,6 +201,9 @@ mod.constant(My.Namespace);
mod.value('name', 23);
mod.value('name', "23");
mod.value(My.Namespace);
mod.decorator('name', function($scope:ng.IScope){ });
mod.decorator('name', ['$scope', <any>function($scope: ng.IScope){ }]);
class TestProvider implements ng.IServiceProvider {
constructor(private $scope: ng.IScope) {