Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Andrey Shilov
Ngx Bootstrap
Commits
70c93f77
Commit
70c93f77
authored
9 years ago
by
Dmitriy Shekhovtsov
Browse files
Options
Download
Email Patches
Plain Diff
chore(quickstart): updated with system.js sample
parent
ec51117b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+17
-12
README.md
with
17 additions
and
12 deletions
+17
-12
README.md
View file @
70c93f77
...
...
@@ -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
...
...
@@ -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 :)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help