You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
The only appropriate use of ngInit is for aliasing special properties of
{@link ng.directive:ngRepeat ngRepeat}, as seen in the demo below. Besides this case, you
should use {@link guide/controller controllers} rather than ngInit
to initialize values on a scope.
However, some of the docs' own examples (e.g. ng-mousenter) explicitly use ng-init in a way which violates the above guidance.
The ng-init docs state:
However, some of the docs' own examples (e.g.
ng-mousenter
) explicitly useng-init
in a way which violates the above guidance.For example,
ng-mouseenter
contains this example:The text was updated successfully, but these errors were encountered: