Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(dart): convert toh-3 to Dart #1071

Closed
wants to merge 4 commits into from
Closed

Conversation

kwalrath
Copy link
Contributor

Based on #700 by @kasperpeulen.

@kwalrath kwalrath closed this in adb4093 Apr 11, 2016
@kwalrath kwalrath deleted the toh-3 branch April 11, 2016 17:01
-->
:marked
We begin by importing the Angular `core.dart` file,
so that we can use common types like `@Component` when we create
Copy link

Choose a reason for hiding this comment

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

Hmm, the type is actually Component instead of Component. If you use it with @ it would probably be better to use @Component() (with ())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know what you mean, but it's pretty standard to not include the (). (E.g. https://www.dartlang.org/docs/dart-up-and-running/ch03.html refers to "a @MirrorsUsed annotation". Then again, https://www.dartlang.org/articles/reflection-with-mirrors/ just says "MirrorsUsed annotation".

I'll keep an eye out for whether people are confused by this. I like the clue that @ provides, but resisted putting more characters after the classname...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants