AppComponent vs App
This commit is contained in:
parent
68ebf708fe
commit
a04be1cd25
|
@ -70,7 +70,7 @@
|
|||
| this.name = "Alice";
|
||||
| }
|
||||
| }
|
||||
| bootstrap(App);
|
||||
| bootstrap(AppComponent);
|
||||
|
||||
section.docs-sub-section
|
||||
h4 Component Annotations
|
||||
|
@ -133,7 +133,7 @@
|
|||
| Angular provides a <code>bootstrap</code> function that renders your component to the page. The <code>bootstrap</code> function takes a component as a parameter. Any child components inside of the parent component will be rendered as well.
|
||||
|
||||
code
|
||||
pre bootstrap(App);
|
||||
pre bootstrap(AppComponent);
|
||||
.clear
|
||||
|
||||
// STEP 5 - Declare the HTML ##########################
|
||||
|
@ -151,6 +151,7 @@
|
|||
| <html>
|
||||
| <head>
|
||||
| <title>Angular 2 Quickstart</title>
|
||||
| <script src="/es6-shim/dist/es6-shim.js"></script>
|
||||
| </head>
|
||||
| <body>
|
||||
| <!-- -->
|
||||
|
@ -177,6 +178,7 @@
|
|||
| <html>
|
||||
| <head>
|
||||
| <title>Angular 2 Quickstart</title>
|
||||
| <script src="/es6-shim/dist/es6-shim.js"></script>
|
||||
| </head>
|
||||
| <body>
|
||||
| <!-- -->
|
||||
|
@ -191,11 +193,15 @@
|
|||
| 'app': 'app.es6'
|
||||
| };
|
||||
| <!-- -->
|
||||
| // Kick off the application
|
||||
| System.import('app');
|
||||
| </script>
|
||||
| </body>
|
||||
| </html>
|
||||
.clear
|
||||
.clear
|
||||
|
||||
p
|
||||
| Run the root of your project on a local server.
|
||||
|
||||
.content-block.content-number.clearfix
|
||||
i.number.icon-number6.large
|
||||
|
|
Loading…
Reference in New Issue