Skip to content

Commit

Permalink
chore(quickstart): updated with system.js sample
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Jan 25, 2016
1 parent ec51117 commit 70c93f7
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,29 @@ npm i ng2-bootstrap --save

## Quick start

If you are following [Angular2 5 min quickstart guide](https://angular.io/docs/ts/latest/quickstart.html), just add one line
```html
<!-- index.html -->
<script src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
```

And update your `app.component.ts` to have following content:

```ts
import {Component} from 'angular2/core';
import {Alert} from 'ng2-bootstrap/ng2-bootstrap';

@Component({
selector: 'app'
})
@View({
template: `
<alert type="info">ng2-bootstrap hello world!</alert>
This is a webpack sample:
`,
directives: [
Alert
]
selector: 'my-app',
directives: [Alert],
template: `<alert type="info">ng2-bootstrap hello world!</alert>`
})
export class Home {
export class AppComponent {
}
```

And you are ready to go! :)

<!--
## Components
Expand All @@ -77,7 +82,7 @@ export class Home {

## API
Check demo for API [documentation](http://valor-software.github.io/ng2-bootstrap/)

## Contribution

Please read central `ng2` modules [readme](https://github.com/valor-software/ng2-plans) for details, plans and approach and welcome :)

0 comments on commit 70c93f7

Please sign in to comment.