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