-
Notifications
You must be signed in to change notification settings - Fork 87
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
Directive to component for examples #3136
Conversation
720cadb
to
152e119
Compare
}, | ||
templateUrl: 'partials/backgroundlayer.html', | ||
controller: 'AppBackgroundlayerController', | ||
controllerAs: 'ctrl' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we remove that ? Then use "$ctrl" in the partial ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but then we need to update partials, I am not sure that it is critical and/or should be done in that PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not critical. That's why we'll probably never do that if we don't do that right now.
But it's not really important. If you think it takes too much time to do the change (and test) leave it like that :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fine to leave as it for the examples but it would be nice to do it the all the ngeo and gmf components (in the others pull requests).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do it as another PR on monday
}, | ||
templateUrl: 'partials/backgroundlayerdropdown.html', | ||
controller: 'AppBackgroundlayerController', | ||
controllerAs: 'ctrl' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same (etc. please verify also in other components)
* @private | ||
* @type {angular.JQLite} | ||
*/ | ||
this.$element = $element; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an underscore if it's private:
this.$element_ = $element;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I will fix it
https://jira.camptocamp.com/browse/GSGMF-151