README.md 1.2 KB
Newer Older
A
Adam Bradley 已提交
1
# @ionic/angular
D
Dan Bucholtz 已提交
2

3
Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components.
D
Dan Bucholtz 已提交
4 5


A
Adam Bradley 已提交
6
## Related
D
Dan Bucholtz 已提交
7

8 9 10 11
* [Ionic Core Components](https://www.npmjs.com/package/@ionic/core)
* [Ionic Documentation](https://ionicframework.com/docs/)
* [Ionic Forum](https://forum.ionicframework.com/)
* [Ionicons](http://ionicons.com/)
A
Adam Bradley 已提交
12
* [Stencil](https://stenciljs.com/)
13 14
* [Stencil Worldwide Slack](https://stencil-worldwide.herokuapp.com/)
* [Capacitor](https://capacitor.ionicframework.com/)
15 16 17 18 19


## License

* [MIT](https://raw.githubusercontent.com/ionic-team/ionic/master/LICENSE)
20 21 22 23 24

## Testing ng-add in ionic

1. Pull the latest from master
2. Build ionic/angular: `npm run build`
25
3. Run `npm link` from `ionic/angular/dist` directory
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
4. Create a blank angular project

```
ng new add-test
// Say yes to including the router, we need it
cd add-test
```

5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)

```
npm install @angular-devkit/schematics-cli
```

6. Link `@ionic/angular`

```
npm link @ionic/angular
```


7. Run the local copy of the ng-add schematic

```
$ npx schematics @ionic/angular:ng-add
```


You'll now be able to add ionic components to a vanilla Angular app setup.