ngInit (directive)

Improve this Doc View Source ngInit

  1. directive in module ng

The ngInit directive allows you to evaluate an expression in the current scope.

The only appropriate use of ngInit is for aliasing special properties of 登录查看完整内容