Skip to content

Commit 43d2855

Browse files
committed
Nav component implement
1 parent 28af491 commit 43d2855

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

do-it/src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<app-nav-bar></app-nav-bar>
12
<h1>
23
{{title}}
34
</h1>

do-it/src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55

66
import { AppComponent } from './app.component';
7+
import { Nav } from './nav/nav.component';
78

89
@NgModule({
910
declarations: [
10-
AppComponent
11+
AppComponent,
12+
Nav
1113
],
1214
imports: [
1315
BrowserModule,

do-it/src/app/nav/nav.component.css

Whitespace-only changes.

do-it/src/app/nav/nav.component.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<nav>
2+
<div class="nav-wrapper">
3+
<a href="#" class="brand-logo">Do It</a>
4+
<ul id="nav-mobile" class="right hide-on-med-and-down">
5+
<li><a href="sass.html">Archive</a></li>
6+
<li><a href="badges.html">About</a></li>
7+
</ul>
8+
</div>
9+
</nav>

do-it/src/app/nav/nav.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-nav-bar',
5+
templateUrl: './nav.component.html',
6+
styleUrls: ['./nav.component.css']
7+
})
8+
export class Nav {
9+
10+
}

do-it/src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
1011
</head>
1112
<body>
1213
<app-root>Loading...</app-root>

0 commit comments

Comments
 (0)