parent
ab2a3599e0
commit
52ece7834a
|
@ -67,7 +67,7 @@ code-example(format="" language="bash").
|
|||
Let's convert the `hero` from a literal string to an interface.
|
||||
|
||||
Create a `Hero` interface with `id` and `name` properties.
|
||||
Keep this near the top of the `app.component.ts` file for now.
|
||||
For now put this near the top of the `app.component.ts` file, just below the import statement.
|
||||
|
||||
+makeExample('toh-1/ts/app/app.component.ts', 'hero-interface-1', 'app.component.ts (Hero interface)')(format=".")
|
||||
|
||||
|
|
Loading…
Reference in New Issue