This project was generated with Angular CLI version 14.1.2.
Clone or download the application. Run npm install.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
To generate module :- ng g module accordion
To generate components :-
-
ng g c accordion --module=accordion --export=true --skip-tests=true --inline-template=true -
ng g c accordion/accordion-item --flat=true --module=accordion --export=true --skip-tests=true
commands explanation:
--module=accordionwill add components to accordion module.--export=truewill add components to export array in module.--skip-tests=truewill skipspec.tsfile creation.--inline-template=truewill create inline template incomponent.tsfile.--flat=truewill skip creating additional folder.