Skip to content

Conversation

@devversion
Copy link
Member

  • Recently with the NgModel support for the selection list, the onTouched property has been added. This one needs to be prefixed with an underscore to be hidden in the docs.
  • Since the initial implementation of the selection-list the selectionList variable has been initialized publically in the constructor of the MatListOption and therefore shows up in the docs. This property has been made private now.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 6, 2017
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but deferring to @jelbourn regarding the constructor signature changes.

private _changeDetector: ChangeDetectorRef,
@Optional() @Inject(forwardRef(() => MatSelectionList))
public selectionList: MatSelectionList) {
private _selectionList: MatSelectionList) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt that many people are depending on this property in particular, but this is technically a breaking change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. If really necessary we can deprecate it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well leave it, doesn't really hurt to leave it as public.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, but it doesn't really make sense from an API perspective. Also it shows up in the docs which is kind of unnecessary. I don't really mind keeping that property as it is. Just let me know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just make it docs-private

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@devversion devversion force-pushed the chore/hide-internal-properties-selection-list branch from 5248d55 to e97c69c Compare December 20, 2017 11:25
@devversion devversion force-pushed the chore/hide-internal-properties-selection-list branch from e97c69c to f04b1f9 Compare December 31, 2017 11:16
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Input()
get disabled() { return (this.selectionList && this.selectionList.disabled) || this._disabled; }
get disabled() {
return this._disabled || this.selectionList && this.selectionList.disabled;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the parentheses around the second condition here? Otherwise it's a little ambiguous.

* Recently with the NgModel support for the selection list, the `onTouched` property has been added. This one needs to be prefixed with an underscore to be hidden in the docs.
* Since the initial implementation of the selection-list the `selectionList` variable has been initialized publically in the constructor of the `MatListOption` and therefore shows up in the docs. This property has been made private now.
@devversion devversion force-pushed the chore/hide-internal-properties-selection-list branch from f04b1f9 to 9cd5a73 Compare January 11, 2018 13:47
@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jan 11, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn merged commit 12af8f4 into angular:master Jan 23, 2018
jelbourn pushed a commit to jelbourn/components that referenced this pull request Jan 29, 2018
…8841)

* Recently with the NgModel support for the selection list, the `onTouched` property has been added. This one needs to be prefixed with an underscore to be hidden in the docs.
* Since the initial implementation of the selection-list the `selectionList` variable has been initialized publically in the constructor of the `MatListOption` and therefore shows up in the docs. This property has been made private now.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants