You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Note that you can often achieve this using [Angular modules](#angular-module) instead.
@@ -129,7 +125,8 @@ block includes
129
125
.l-sub-section
130
126
blockbootstrap-defn-top
131
127
:marked
132
-
You launch an Angular application by "bootstrapping" it using the application root Angular module (`AppModule`). Bootstrapping identifies an application's top level "root" [component](#component), which is the first component that is loaded for the application. For more information, see [QuickStart](!{docsLatest}/quickstart.html).
128
+
You launch an Angular application by "bootstrapping" it using the application root Angular module (`AppModule`). Bootstrapping identifies an application's top level "root" [component](#component), which is the first component that is loaded for the application.
129
+
For more information, see the [Setup](!{docsLatest}/guide/setup.html).
133
130
:marked
134
131
You can bootstrap multiple apps in the same `index.html`, each with its own top level root.
Copy file name to clipboardExpand all lines: public/docs/ts/latest/guide/template-syntax.jade
+3-2
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,11 @@ block includes
42
42
.l-main-section
43
43
:marked
44
44
## HTML
45
-
HTML is the language of the Angular template. Our [QuickStart](../quickstart.html) application has a template that is pure HTML:
45
+
HTML is the language of the Angular template.
46
+
The [QuickStart](../quickstart.html) application has a template that is pure HTML:
46
47
47
48
code-example(language="html"escape="html").
48
-
<h1>My First Angular App</h1>
49
+
<h1>Hello Angular!</h1>
49
50
50
51
:marked
51
52
Almost all HTML syntax is valid template syntax. The `<script>` element is a notable exception; it is forbidden, eliminating the risk of script injection attacks. (In practice, `<script>` is simply ignored.)
This file contains options and flags that are essential for Angular applications.
30
30
@@ -36,24 +36,25 @@ a(id="tsconfig")
36
36
But your choice now can make a difference in larger projects, so it merits discussion.
37
37
38
38
When the `noImplicitAny` flag is `false` (the default), and if
39
-
the compiler cannot infer the variable type based on how it's used, the compiler silently defaults the type to `any`. That's what is meant by *implicit `any`*.
40
-
41
-
In the QuickStart exercise, the `noImplicitAny` flag is initialized to `false`
42
-
to make learning TypeScript development easier.
39
+
the compiler cannot infer the variable type based on how it's used,
40
+
the compiler silently defaults the type to `any`. That's what is meant by *implicit `any`*.
43
41
42
+
The documentation setup sets the `noImplicitAny` flag to `true`.
44
43
When the `noImplicitAny` flag is `true` and the TypeScript compiler cannot infer
45
44
the type, it still generates the JavaScript files, but it also **reports an error**.
46
45
Many seasoned developers prefer this stricter setting because type checking catches more
47
46
unintentional errors at compile time.
48
47
49
48
You can set a variable's type to `any` even when the `noImplicitAny` flag is `true`.
50
49
51
-
If you set the `noImplicitAny` flag to `true`, you may get *implicit index errors* as well.
50
+
When the `noImplicitAny` flag is `true, you may get *implicit index errors* as well.
52
51
Most developers feel that *this particular error* is more annoying than helpful.
53
52
You can suppress them with the following additional flag:
54
53
code-example(format=".").
55
54
"suppressImplicitAnyIndexErrors":true
56
55
56
+
:marked
57
+
The documentation setup sets this flag to `true` as well.
.alert.is-important The project also contains some animations, which we are not yet upgrading in this version of the guide. This will change in a later release.
1026
1026
1027
1027
:marked
1028
-
Let's install Angular 2 into the project, along with the SystemJS module loader. Take a look into the
1029
-
[Quickstart](../quickstart.html) guide and get the following configurations from there:
1028
+
Let's install Angular 2 into the project, along with the SystemJS module loader.
1029
+
Take a look at the results of the [Setup](setup.html) instructions
1030
+
and get the following configurations from there:
1030
1031
1031
1032
* Add Angular 2 and the other new dependencies to `package.json`
1032
1033
* The SystemJS configuration file `systemjs.config.js` to the project root directory.
0 commit comments