Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 728 Bytes

ng-cli.md

File metadata and controls

42 lines (31 loc) · 728 Bytes

Getting started with angular-cli

Installing angular-cli

Note: you can skip this part if you already have application generated by ng-cli and webpack

npm i -g @angular/cli
ng new my-app
cd my-app
ng serve

Adding ng2-ya-table

  • install ng2-ya-table and bootstrap
  npm install ng2-ya-table bootstrap --save
  • open src/app/app.module.ts and add
import { Ng2YaTableModule } from 'ng2-ya-table';
...

@NgModule({
   ...
   imports: [Ng2YaTableModule, ... ],
    ... 
})
  • open angular.json and insert a new entry into the styles array
      "styles": [
         "bootstrap/dist/css/bootstrap.min.css",
        "styles.css",
      ],