UNPKG

ng2-bootstrap-base-modified

Version:

Native Angular Bootstrap Components Typeahead modified

48 lines (35 loc) 888 B
### 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 ```bash npm i -g @angular/cli ng new my-app cd my-app ng serve ``` #### Adding ng2-bootstrap - install `ng2-bootstrap` and `bootstrap` ```bash npm install ng2-bootstrap bootstrap --save ``` - open `src/app/app.module.ts` and add ```typescript import { AlertModule } from 'ng2-bootstrap'; ... @NgModule({ ... imports: [AlertModule.forRoot(), ... ], ... }) ``` - open `angular-cli.json` and insert a new entry into the styles array ```json "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.min.css", "styles.css", ], ``` - open `src/app/app.component.html` and add ``` <alert type="success">hello</alert> ```