1 | # @ionic/angular
|
2 |
|
3 | Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components.
|
4 |
|
5 |
|
6 | ## Related
|
7 |
|
8 | * [Ionic Core Components](https://www.npmjs.com/package/@ionic/core)
|
9 | * [Ionic Documentation](https://ionicframework.com/docs/)
|
10 | * [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/)
|
11 | * [Ionic Forum](https://forum.ionicframework.com/)
|
12 | * [Ionicons](http://ionicons.com/)
|
13 | * [Stencil](https://stenciljs.com/)
|
14 | * [Stencil Worldwide Slack](https://stencil-worldwide.herokuapp.com/)
|
15 | * [Capacitor](https://capacitor.ionicframework.com/)
|
16 |
|
17 |
|
18 | ## License
|
19 |
|
20 | * [MIT](https://raw.githubusercontent.com/ionic-team/ionic/master/LICENSE)
|
21 |
|
22 | ## Testing ng-add in ionic
|
23 |
|
24 | 1. Pull the latest from master
|
25 | 2. Build ionic/angular: `npm run build`
|
26 | 3. Run `npm link` from `ionic/angular/dist` directory
|
27 | 4. Create a blank angular project
|
28 |
|
29 | ```
|
30 | ng new add-test
|
31 | // Say yes to including the router, we need it
|
32 | cd add-test
|
33 | ```
|
34 |
|
35 | 5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)
|
36 |
|
37 | ```
|
38 | npm install @angular-devkit/schematics-cli
|
39 | ```
|
40 |
|
41 | 6. Link `@ionic/angular`
|
42 |
|
43 | ```
|
44 | npm link @ionic/angular
|
45 | ```
|
46 |
|
47 |
|
48 | 7. Run the local copy of the ng-add schematic
|
49 |
|
50 | ```
|
51 | $ npx schematics @ionic/angular:ng-add
|
52 | ```
|
53 |
|
54 |
|
55 | You'll now be able to add ionic components to a vanilla Angular app setup.
|