Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d401543

Browse files
committed
Add bootstrap and ng2-bootstrap
1 parent ada90ea commit d401543

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"@angular/platform-browser": "^2.3.1",
2222
"@angular/platform-browser-dynamic": "^2.3.1",
2323
"@angular/router": "^3.3.1",
24+
"bootstrap-sass": "^3.3.7",
2425
"core-js": "^2.4.1",
26+
"ng2-bootstrap": "^1.3.0",
2527
"rxjs": "^5.0.1",
2628
"ts-helpers": "^1.1.1",
2729
"zone.js": "^0.7.2"

‎src/app/app.component.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<h1>
22
{{title}}
33
</h1>
4+
5+
<alert type="success">hello</alert>

‎src/app/app.module.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
5+
import { AlertModule } from 'ng2-bootstrap';
56

67
import { AppComponent } from './app.component';
78

@@ -12,7 +13,8 @@ import { AppComponent } from './app.component';
1213
imports: [
1314
BrowserModule,
1415
FormsModule,
15-
HttpModule
16+
HttpModule,
17+
AlertModule.forRoot()
1618
],
1719
providers: [],
1820
bootstrap: [AppComponent]

‎src/styles.sass‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/* You can add global styles to this file, and also import other style files */
2+
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"
3+
@import"~bootstrap-sass/assets/stylesheets/_bootstrap.scss"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /