Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instead of using $parent and an isolate scope, use $parse. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrajcok
Copy link

@mrajcok mrajcok commented Sep 24, 2013

Instead of using $parent and an isolate scope, $parse can be used to specify which scope function the directive should call when a date is selected via the jQuery plugin UI.

There have been some discussions on StackOverflow about using ngModel
and isolate scopes. The general concensus seems to be "don't":

http://stackoverflow.com/questions/11896732/ngmodel-and-component-with-isolated-scope

http://stackoverflow.com/questions/15419629/angularjs-two-way-data-binding-fails-if-element-has-ngmodel-and-a-custom-direct/15419873#15419873
"Since you are trying to create a component that must interact with other
directives, an isolate scope is not the best choice."

specify which scope function the directive should call when a date
is selected via the jQuery plugin UI.

There have been some discussions on StackOverflow about using ngModel
and isolate scopes.  The general concensus seems to be "don't":

http://stackoverflow.com/questions/11896732/ngmodel-and-component-with-isolated-scope

http://stackoverflow.com/questions/15419629/angularjs-two-way-data-binding-fails-if-element-has-ngmodel-and-a-custom-direct/15419873#15419873
"Since you are trying to create a component that must interact with other
directives, an isolate scope is not the best choice."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant