-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs($controller): deprecate the use of $controllerProvider#allowGlobals #15230
Conversation
We are going to remove the feature in 1.7? |
I agree. The version when this is removed should go into the deprecated tag. @petebacondarwin can we render this nicely with dgeni? |
We should be able to tweak the dgeni templates. I'll take a look tomorrow |
@@ -59,6 +59,9 @@ function $ControllerProvider() { | |||
* @ngdoc method | |||
* @name $controllerProvider#allowGlobals | |||
* @description If called, allows `$controller` to find controller constructors on `window` | |||
* | |||
* @deprecated | |||
* This method of finding controllers has been deprecated. This will be removed in a future version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be removed in 1.7
bf3628c
to
6b76d9e
Compare
@petebacondarwin updated with a specific version |
@@ -59,6 +59,9 @@ function $ControllerProvider() { | |||
* @ngdoc method | |||
* @name $controllerProvider#allowGlobals | |||
* @description If called, allows `$controller` to find controller constructors on `window` | |||
* | |||
* @deprecated | |||
* This method of finding controllers has been deprecated. This will be removed in 1.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing .
😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
6b76d9e
to
31603cf
Compare
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs
Does this PR introduce a breaking change?
puts the warning for a future one
Anything else that needs to be done to prepare for removing this in 1.7?