I'm working in angular project with own CSS which is almost done now i want to use ionic framework with cordova in my project. I tried but it is not working .
Is there any way and step by step process to add ionic framework in my existing Angular 4 project.
can i have any link or guidance to reach my goal.
Thanks in advance
I have documented my approach here:
https://stack247.wordpress.com/2019/03/11/integrate-ionic-in-existing-angular-project/
This applies to
Essentially, these are the steps:
The step includes creating a new project using Ionic CLI, I'm going to refer it as Ionic project while my original Angular project as, well, Angular project.
ionic.config.json
from Ionic project to Angular project.angular.json
from Ionic project to Angular project.angular.json
, make that necessary changes in the Angular project after the copy.projects/app/architect/**/options/styles
from Angular project'sangular.json
prior to copy.package.json
from Ionic project to Angular project.package.json
(npm scripts, etc), make that necessary changes in the Angular project after the copy.dependencies
anddevDependencies
.package-lock.json
file andnode_modules
folder. These should be located in root of the project.There is a schematic command for adding ionic to an existing angular project:
ng add @ionic/angular