parent
b56a97485e
commit
1cdd1e681c
|
@ -62,7 +62,7 @@ code-example(format="." language="bash").
|
|||
|
||||
All of our component names end in "Component". All of our component file names end in "_component".
|
||||
|
||||
We spell our file names in lower dash case (AKA "kebab-case") so we don't worry about
|
||||
We spell our filenames in lower underscore case (AKA "snake_case") so we don't worry about
|
||||
case sensitivity on the server or in source control.
|
||||
|
||||
<!-- TODO
|
||||
|
@ -135,12 +135,12 @@ code-example(format=".").
|
|||
*source* properties do not.
|
||||
:marked
|
||||
There are a couple of ways we can declare that `hero` is an *input*.
|
||||
We'll do it the way we *prefer*, by annotating the `hero` property with the `@Input` decorator.
|
||||
We'll do it the way we *prefer*, by annotating the `hero` property with `@Input()`.
|
||||
+makeExample('toh-3/dart/lib/hero_detail_component.dart', 'inputs')(format=".")
|
||||
|
||||
.l-sub-section
|
||||
:marked
|
||||
Learn more about the `@Input()` annotation way in the
|
||||
Learn more about `@Input()` in the
|
||||
[Attribute Directives](../guide/attribute-directives.html#input) chapter.
|
||||
|
||||
.l-main-section
|
||||
|
|
Loading…
Reference in New Issue