File tree 7 files changed +22
-5
lines changed
7 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,5 @@ testem.log
31
31
# System Files
32
32
.DS_Store
33
33
Thumbs.db
34
+
35
+ * .iml
Original file line number Diff line number Diff line change 17
17
"styles" : [
18
18
" styles.css"
19
19
],
20
- "scripts" : [],
20
+ "scripts" : [
21
+ " ../node_modules/jquery/dist/jquery.js" ,
22
+ " ../node_modules/materialize-css/dist/js/materialize.js"
23
+ ],
21
24
"environments" : {
22
25
"source" : " environments/environment.ts" ,
23
26
"dev" : " environments/environment.ts" ,
Original file line number Diff line number Diff line change 20
20
"@angular/platform-browser" : " 2.0.0" ,
21
21
"@angular/platform-browser-dynamic" : " 2.0.0" ,
22
22
"@angular/router" : " 3.0.0" ,
23
+ "angular2-materialize" : " ^5.1.4" ,
23
24
"core-js" : " ^2.4.1" ,
25
+ "jquery" : " ^2.2.4" ,
26
+ "materialize-css" : " ^0.97.7" ,
24
27
"rxjs" : " 5.0.0-beta.12" ,
25
28
"ts-helpers" : " ^1.1.1" ,
26
29
"zone.js" : " ^0.6.23"
Original file line number Diff line number Diff line change 1
- import { Component } from '@angular/core' ;
1
+ import { Component , OnInit } from '@angular/core' ;
2
+ import { toast } from "angular2-materialize" ;
2
3
3
4
@Component ( {
4
5
selector : 'app-root' ,
5
6
templateUrl : './app.component.html' ,
6
7
styleUrls : [ './app.component.css' ]
7
8
} )
8
- export class AppComponent {
9
+ export class AppComponent implements OnInit {
9
10
title = 'app works!' ;
11
+
12
+ ngOnInit ( ) : void {
13
+ toast ( "...and Materialize works as well!" )
14
+ }
10
15
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { FormsModule } from '@angular/forms';
4
4
import { HttpModule } from '@angular/http' ;
5
5
6
6
import { AppComponent } from './app.component' ;
7
+ import { MaterializeModule } from "angular2-materialize" ;
7
8
8
9
@NgModule ( {
9
10
declarations : [
@@ -12,7 +13,8 @@ import { AppComponent } from './app.component';
12
13
imports : [
13
14
BrowserModule ,
14
15
FormsModule ,
15
- HttpModule
16
+ HttpModule ,
17
+ MaterializeModule
16
18
] ,
17
19
providers : [ ] ,
18
20
bootstrap : [ AppComponent ]
Original file line number Diff line number Diff line change 5
5
< title > AngularExample</ title >
6
6
< base href ="/ ">
7
7
8
+ < link href ="http://fonts.googleapis.com/icon?family=Material+Icons " rel ="stylesheet ">
8
9
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
10
< link rel ="icon " type ="image/x-icon " href ="favicon.ico ">
10
11
Original file line number Diff line number Diff line change 1
- /* You can add global styles to this file, and also import other style files */
1
+ /* You can add global styles to this file, and also import other style files */
2
+ @import "../node_modules/materialize-css/dist/css/materialize.css" ;
You can’t perform that action at this time.
0 commit comments