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

refactor(all): consistent inputs #10898

Merged
merged 12 commits into from
Apr 5, 2017
Merged

refactor(all): consistent inputs #10898

merged 12 commits into from
Apr 5, 2017

Conversation

manucorporat
Copy link
Contributor

fixes #8578

@manucorporat manucorporat added this to the 2.4.0 milestone Mar 24, 2017
@@ -58,13 +58,13 @@ export class PageOne {
buttons: [
{
text: 'Cancel',
handler: (data: any) => {
handler: (data) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not longer needed, because I added proper types in AlertButton

'<div class="checkbox-inner"></div>' +
'</div>' +
'<button role="checkbox" ' +
'type="button" ' +
'ion-button="item-cover" ' +
'[id]="id" ' +
'[attr.aria-checked]="_checked" ' +
'[attr.aria-checked]="_value" ' +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is _checked is not longer the source of trust, but _value from BaseInput

*/
writeValue(val: any) {
this._setChecked(isTrueProperty(val));
this.value = val;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

back-compatible property

}

if (isTrueProperty(this._disabled)) {
button._setElementClass('segment-button-disabled', this._disabled);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was not properly refactored

@manucorporat manucorporat merged commit 156b982 into master Apr 5, 2017
@brandyscarney brandyscarney deleted the refactor-inputs branch April 13, 2017 19:40
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.

Consistent ionic NgModel components
1 participant