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
Copy file name to clipboardExpand all lines: docs/angular-meteor/client/content/tutorials/socially/angular2/tutorials.socially.angular2.step_00.md
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -215,13 +215,14 @@ At this moment you've likely noticed a message in the console saying that `angul
215
215
It occurs because the TypeScript compiler is configured in the package with diagnostics messages turned on by default and
216
216
the TypeScript compiler doesn't know anything about the location of the `angular2/core` and `angular2/platform/browser` modules. To fix this, you will need to make use of TypeScript declaration files, which is a TypeScript way to inform the compiler about third-party API modules.
217
217
218
-
After the first run, you will find the `angular2-meteor.d.ts` file in the new folder called "typings".
218
+
After the first run, you will find the `angular2-meteor.d.ts` file in the new folder called "typings". This file is actually located
219
+
in its own folder with the same name. This is how declaration files are laid out due to the convention followed by TypeScript community.
219
220
This file has been created by the package at start time and contains a special reference to Angular 2 and Meteor declaration files.
220
221
There are two ways to link `app.ts` and `angular2-meteor.d.ts` together:
221
222
222
223
- one way is to directly reference `angular2-meteor.d.ts` using a special sugared syntax at the top of `app.ts` as follows:
@@ -230,8 +231,8 @@ There are two ways to link `app.ts` and `angular2-meteor.d.ts` together:
230
231
- another way is to create a custom [TypeScript configuration file](https://github.com/Microsoft/TypeScript/wiki/tsconfig.json) with the "files" property set to include all required typings files.
231
232
232
233
This configuration file should be called `tsconfig.json` and placed at
233
-
the app root folder. We'll also take a close look at the configuration itself during the "Folder Structure"
234
-
step, including how to configure TypeScript properly to automatically generate your `tsconfig.json` file in different IDEs.
234
+
the app root folder. We'll also take a close look at the configuration itself during
235
+
step 7, including how to configure TypeScript properly to automatically generate your `tsconfig.json` file in different IDEs.
235
236
236
237
Let's make use of the typings in the second way. Angular 2 and the Meteor API will be
237
238
used in pretty much every file of our app, so adding declaration files manually might become repetitive.
@@ -240,9 +241,26 @@ Now create `tsconfig.json` and add path to `angular2-meteor.d.ts` as follows:
Copy file name to clipboardExpand all lines: docs/angular-meteor/client/content/tutorials/socially/angular2/tutorials.socially.angular2.step_07.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ Some of the typings files have names `angular2.d.ts` and `meteor.d.ts`, which, a
36
36
37
37
But as you remember, we've mentioned so far only one declaration file `angular2-meteor.d.ts` and used it in the TypeScript config (on the first step), that's thanks to a special TypeScript syntax construction that can link together one declaration files with other declaration files as well as TypeScript files. If you look inside of `angular2-meteor.d.ts` you'll see Angular 2 and Meteor declaration files are linked there by:
0 commit comments