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
3. Run `npm link` from `ionic/angular/dist` directory
26
-
4. Create a blank angular project
27
-
28
-
```
29
-
ng new add-test
30
-
// Say yes to including the router, we need it
31
-
cd add-test
32
-
```
33
-
34
-
5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)
35
-
36
-
```
37
-
npm install @angular-devkit/schematics-cli
38
-
```
39
-
40
-
6. Link `@ionic/angular`
41
-
42
-
```
43
-
npm link @ionic/angular
44
-
```
45
-
46
-
47
-
7. Run the local copy of the ng-add schematic
48
-
49
-
```
50
-
$ npx schematics @ionic/angular:ng-add
51
-
```
52
-
53
-
54
-
You'll now be able to add ionic components to a vanilla Angular app setup.
21
+
## Testing Local Ionic Framework with `ng add`
22
+
23
+
This guide shows you how to test the local Ionic Framework build with a new Angular application using `ng add`. This is useful for development and testing changes before publishing.
# Change to whichever directory you want the app in
74
+
cd~/Documents/
75
+
ng new my-app --style=css --ssr=false --zoneless=false
76
+
cd my-app
77
+
```
78
+
79
+
8. Install the local`@ionic/angular` package:
80
+
```sh
81
+
npm install ~/Downloads/ionic-angular.tgz
82
+
```
83
+
84
+
9. Run `ng add`:
85
+
```sh
86
+
ng add @ionic/angular --skip-confirmation
87
+
```
88
+
89
+
10. Serve the app:
90
+
```sh
91
+
ng serve
92
+
```
93
+
94
+
The local Ionic Framework build is now active in the Angular app. Changes to the Ionic source code require rebuilding the packages and reinstalling the tarball to see updates.
0 commit comments