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.

This directive can be abused to add unnecessary amounts of logic into your templates. There are only a few appropriate uses of n