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

docs(input[checkbox]): Update example to best practice #10851

Closed
wants to merge 2 commits into from

Conversation

mhoffmeyerDC
Copy link
Contributor

It's not required for the example to function, but it prevents scope weirdness/unexpected behavior when using directives (especially with ngTransclude!). I think it's a good pattern to encourage and might prevent a bug down the road for for people who just scan for the monospace font. See Understanding Scopes for mgModel best practices.

It's not required for the example to function, but it prevents scope weirdness/unexpected behavior when using directives (especially with ngTransclude!). I think it's a good pattern to encourage and might prevent a bug down the road for for people who just scan for the monospace font. See [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes) for mgModel best practices.
Update tests to reflect new model.
@petebacondarwin
Copy link
Contributor

Yes, fair enough.

@petebacondarwin
Copy link
Contributor

But we should also fix up the rest of the examples in that file. I'll do that and merge.

@mhoffmeyerDC
Copy link
Contributor Author

Thanks, Peter. Think we should update the first example in ngModel as well?

@petebacondarwin petebacondarwin self-assigned this Jan 24, 2015
@petebacondarwin petebacondarwin added this to the 1.4.0-beta.2 / 1.3.11 milestone Jan 24, 2015
petebacondarwin added a commit that referenced this pull request Jan 24, 2015
Update the rest of the directives to use object properties for models.

Closes #10851
petebacondarwin pushed a commit that referenced this pull request Jan 24, 2015
It's not required for the example to function, but it prevents scope weirdness/unexpected
behavior when using directives (especially with ngTransclude!). I think it's a good pattern
to encourage and might prevent a bug down the road for for people who just scan for the
monospace font. See
[Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)
for mgModel best practices.

Closes #10851
petebacondarwin added a commit that referenced this pull request Jan 24, 2015
Update the rest of the directives to use object properties for models.

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

Successfully merging this pull request may close these issues.

3 participants