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

Directive to component for examples #3136

Merged
1 commit merged into from
Nov 24, 2017

Conversation

ghost
Copy link

@ghost ghost commented Nov 21, 2017

@ghost ghost self-assigned this Nov 21, 2017
@apastuhov apastuhov force-pushed the feature-GSGMF-151-directive-to-component branch from 720cadb to 152e119 Compare November 21, 2017 15:21
@sbrunner sbrunner added this to the 2.3 milestone Nov 21, 2017
},
templateUrl: 'partials/backgroundlayer.html',
controller: 'AppBackgroundlayerController',
controllerAs: 'ctrl'
Copy link
Member

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 ?

Copy link
Contributor

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

Copy link
Member

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 :-)

Copy link
Member

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).

Copy link
Author

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'
Copy link
Member

@ger-benjamin ger-benjamin Nov 23, 2017

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;
Copy link
Member

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;

Copy link
Contributor

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

@ghost ghost merged commit b5d50e2 into master Nov 24, 2017
@ghost ghost deleted the feature-GSGMF-151-directive-to-component branch November 24, 2017 15:39
This pull request was closed.
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.

5 participants