参数值可以是任何有效的模板表达式,比如字符串字面量或组件的属性。
The parameter value can be any valid template expression such as a string literal or a component property.
格式化字符串是一个字面量文本,内嵌了一些命令指示,把其后的参数转入文本中。
The format string contains literal text, embedded with directives, for converting the trailing list of arguments into text.
Angular对所有双花括号中的表达式求值,把求值的结果转换成字符串,并把它们跟相邻的字符串字面量连接起来。
Angular evaluates all expressions in double curly braces, converts the expression results to strings, and links them with neighboring literal strings.
应用推荐