ngMessages.ngMessageExp (directive)

Improve this Doc View Source ngMessageExp

  1. directive in module ngMessages

ngMessageExp is the same as ngMessage, but instead of a static value, it accepts an expression to be evaluated for the message key.

Directive Info

  • This directive creates new scope.
  • This directive executes at priority level 1.

Usage

<!-- using attribute directives -->
<ANY ng-messages="expression">
  <ANY ng-message-exp="expressionValue">...</ANY>
</ANY>

<!-- or by using element directives -->
<ng-messages for="expression">
  <ng-message when-exp="expressionValue">...</ng-message>
</ng-messages>

Click here to learn more about ngMessages and ngMessage.

Arguments

Param Type Details
ngMessageExp | whenExp expression

an expression value corresponding to the message key.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.4/docs/api/ngMessages/directive/ngMessageExp

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部