Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular docs error #8276

Closed
dbwhddn10 opened this issue Jul 21, 2014 · 2 comments
Closed

angular docs error #8276

dbwhddn10 opened this issue Jul 21, 2014 · 2 comments

Comments

@dbwhddn10
Copy link
Contributor

https://docs.angularjs.org/api/ng/service/$interpolate in this page

i think

// "allOrNothing" mode
  exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
  expect(exp(context, true)).toBeUndefined();
  context.name = 'Angular';
  expect(exp(context, true)).toEqual('Hello Angular!');

is wrong
but

// "allOrNothing" mode
  exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
  expect(exp(context)).toBeUndefined();
  context.name = 'Angular';
  expect(exp(context)).toEqual('Hello Angular!');

is correct

exp function is

function(context){
}

when i test with jsfiddle
http://jsfiddle.net/Bvc62/91/

@btford btford self-assigned this Jul 21, 2014
@btford
Copy link
Contributor

btford commented Jul 21, 2014

Yep, you're right.

This was likely my bad.

@btford btford added this to the Backlog milestone Jul 21, 2014
@btford btford closed this as completed Jul 22, 2014
btford pushed a commit that referenced this issue Jul 22, 2014
@btford
Copy link
Contributor

btford commented Jul 22, 2014

Closed via c4c83ef.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants