Skip to content

Conversation

@jelbourn
Copy link
Member

All components migrated to TypeScript except for the dialog, which is blocked on #2127, and Tabs which are pending in #1977.

/cc @mprobst @alexeagle

Copy link
Contributor

Choose a reason for hiding this comment

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

move the init value to the declaration ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would rather make minimal changes in this PR to get things working and worry about idiomatic TS later.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense. I was also asking to know if we have defined a best practice for those.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we've really talked about it yet. Would be a good thing to do soon.

@vicb
Copy link
Contributor

vicb commented May 26, 2015

A few questions that I also had when converting to TS, do we have guidelines on:

  • explicit initialization in ctor (this.prop = val;) vs initialization at decl (prop: type = val;)
  • List<Type> vs Type[]

@vicb
Copy link
Contributor

vicb commented May 26, 2015

Oh... LGTM

(OT why do material use a different clang-format style ?)

@vicb vicb added @lgtm action: merge The PR is ready for merge by the caretaker labels May 26, 2015
@jelbourn
Copy link
Member Author

@vicb the components will eventually be their own library / repo, and I hate the single-lining of functions and blocks.

@jelbourn
Copy link
Member Author

Closed via 0f3a8f3

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer these as well. Maybe we should consider applying to all of Angular. The delta would be pretty big but maybe worth it? @mprobst ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm large apathetic to this. I generally like anything that saves vertical
space (in particular for object literals, and there in particular in
named-arguments style calls). But I don't feel too strongly about it, I
just want automated formatting that works well.

@jelbourn jelbourn deleted the typescript-material-2 branch May 24, 2016 01:13
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants