Skip to content

component: MdInput - #161

Merged
hansl merged 1 commit into
angular:masterfrom
hansl:md-input
Mar 31, 2016
Merged

component: MdInput#161
hansl merged 1 commit into
angular:masterfrom
hansl:md-input

Conversation

@hansl

Copy link
Copy Markdown
Contributor

No description provided.

@hanslhansl added the in progress This issue is currently in progress label Mar 14, 2016
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 14, 2016
@hansl
hanslforce-pushed the md-input branch 9 times, most recently from 2b58ce3 to de51aedCompareMarch 15, 2016 17:22
Comment threadsrc/core/annotations/field-value.ts Outdated
const defaultValue = target[key];

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

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
hanslforce-pushed the md-input branch 3 times, most recently from 62e2d0a to 7718712CompareMarch 16, 2016 19:52
@jelbournjelbourn mentioned this pull request Mar 16, 2016
@hansl
hanslforce-pushed the md-input branch 4 times, most recently from b132570 to 19810beCompareMarch 17, 2016 18:00
Comment threadsrc/components/input/input.ts Outdated
export class MdInput implements ControlValueAccessor {
private _empty: boolean = true;
private _focused: boolean = false;
private _onTouched: () => void = () => {};

Copy link
Copy Markdown

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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@hansl
hanslforce-pushed the md-input branch 3 times, most recently from a5fa97a to a384a3aCompareMarch 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
Copy Markdown

Choose a reason for hiding this comment

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

except file?

Comment threadsrc/demo-app/input/input-demo.scss Outdated
color: md-color($md-primary);
}

md-card {

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

done.

@jelbourn

Copy link
Copy Markdown
Contributor

Done w/ second pass

@hansl
hanslforce-pushed the md-input branch 7 times, most recently from 420e592 to e218b12CompareMarch 25, 2016 23:28
@hansl

Copy link
Copy Markdown
ContributorAuthor

PTAL.

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

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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
hanslforce-pushed the md-input branch 4 times, most recently from 33eb683 to 3bc1606CompareMarch 31, 2016 00:17
@jelbourn

Copy link
Copy Markdown
Contributor

LGTM

@hansl
hansl merged commit 74d9bc0 into angular:masterMar 31, 2016
@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 5, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yesPR author has agreed to Google's Contributor License Agreementin progressThis issue is currently in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@hansl@jelbourn@mhevery@ThomasBurleson@zoechi@m0t0r@googlebot