docs($interpolate): fix example

Closes #8276
This commit is contained in:
dbwhddn10
2014-07-22 20:09:38 +09:00
committed by Brian Ford
parent 38ad144c33
commit c4c83ef756

View File

@@ -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.