Skip to content

component: MdInput #161

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

Merged
merged 1 commit into from
Mar 31, 2016
Merged

component: MdInput #161

merged 1 commit into from
Mar 31, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Mar 14, 2016

No description provided.

@hansl hansl added the in progress This issue is currently in progress label Mar 14, 2016
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 14, 2016
@hansl hansl force-pushed the md-input branch 9 times, most recently from 2b58ce3 to de51aed Compare March 15, 2016 17:22
const defaultValue = target[key];

// Use a fallback if Symbol isn't available.
const localKey = isPresent(Symbol) ? Symbol(key) : `@@$_${key}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

adding special characters such as @@ makes the object into slow object. Better to use __private_symbol_ or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Firefox used to support @@ as a prefix for symbols, thus my usage of this.

@hansl hansl force-pushed the md-input branch 3 times, most recently from 62e2d0a to 7718712 Compare March 16, 2016 19:52
@jelbourn jelbourn mentioned this pull request Mar 16, 2016
@hansl hansl force-pushed the md-input branch 4 times, most recently from b132570 to 19810be Compare March 17, 2016 18:00
export class MdInput implements ControlValueAccessor {
private _empty: boolean = true;
private _focused: boolean = false;
private _onTouched: () => void = () => {};

Choose a reason for hiding this comment

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

Does ng2 provide a noop( ) function like ng1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@hansl hansl force-pushed the md-input branch 3 times, most recently from a5fa97a to a384a3a Compare March 21, 2016 17:42
## Type

At the time of writing this README, the `[type]` attribute is copied to the actual `<input>` element in the `<md-input>`. Therefore, the valid types and behavior of those are the ones supported by your browser.

Copy link

Choose a reason for hiding this comment

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

except file?

color: md-color($md-primary);
}

md-card {
Copy link
Member

Choose a reason for hiding this comment

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

moar .demo- prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@jelbourn
Copy link
Member

Done w/ second pass

@hansl hansl force-pushed the md-input branch 7 times, most recently from 420e592 to e218b12 Compare March 25, 2016 23:28
@hansl
Copy link
Contributor Author

hansl commented Mar 25, 2016

PTAL.

@hansl hansl force-pushed the md-input branch 2 times, most recently from 35789d3 to c87cdb0 Compare March 29, 2016 19:04
[class.md-accent]="dividerColor == 'accent'"></span>
</div>

<div *ngIf="hintLabel != ''" class="md-hint">{{hintLabel}}</div>
Copy link
Member

Choose a reason for hiding this comment

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

No actions now, but my gut is worried about each input having ~25 bindings. Something to explore later.

(I could just be clinging to Angular 1 performance concerns, though)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted. There should be a greater task of performance checks AND visual checking before full release. In beta maybe.

Also, https://www.youtube.com/watch?v=fpaQpyU_QiM

@hansl hansl force-pushed the md-input branch 4 times, most recently from 33eb683 to 3bc1606 Compare March 31, 2016 00:17
@jelbourn
Copy link
Member

LGTM

@hansl hansl merged commit 74d9bc0 into angular:master Mar 31, 2016
@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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement in progress This issue is currently in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants