Tag Archives: cli

Angular 4/5 quick tips

 

 

 

 

 

 

how to add bootstrap:

npm install [email protected] jquery tether --save

add the scripts and styles to your “.angular-cli.json”

add the following the styles and scripts section;

"styles": [
 "styles.css",
 "../node_modules/bootstrap/dist/css/bootstrap.css"
 ],
 "scripts": [
 "../node_modules/jquery/dist/jquery.js",
 "../node_modules/tether/dist/js/tether.js",
 "../node_modules/bootstrap/dist/js/bootstrap.js"

create new project:

ng new myapp

start server:

ng serve

create new component:

ng g component components/mynewcomponent

create new service:

ng g service services/mynewservice