mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
@@ -125,9 +125,9 @@ function $InterpolateProvider() {
|
||||
*
|
||||
* // "allOrNothing" mode
|
||||
* exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
|
||||
* expect(exp(context, true)).toBeUndefined();
|
||||
* expect(exp(context)).toBeUndefined();
|
||||
* context.name = 'Angular';
|
||||
* expect(exp(context, true)).toEqual('Hello Angular!');
|
||||
* expect(exp(context)).toEqual('Hello Angular!');
|
||||
* ```
|
||||
*
|
||||
* `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.
|
||||
|
||||
Reference in New Issue
Block a user