Skip to content

Commit c4c83ef

Browse files
dbwhddn10btford
authored andcommitted
docs($interpolate): fix example
Closes angular#8276
1 parent 38ad144 commit c4c83ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/interpolate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ function $InterpolateProvider() {
125125
*
126126
* // "allOrNothing" mode
127127
* exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
128-
* expect(exp(context, true)).toBeUndefined();
128+
* expect(exp(context)).toBeUndefined();
129129
* context.name = 'Angular';
130-
* expect(exp(context, true)).toEqual('Hello Angular!');
130+
* expect(exp(context)).toEqual('Hello Angular!');
131131
* ```
132132
*
133133
* `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.

0 commit comments

Comments
 (0)