Skip to content

Commit

Permalink
install ngx-bootstrap and google material icon, and prepare navbar co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
dog-ears committed Feb 20, 2018
1 parent 2a5fb00 commit a797be9
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 24 deletions.
1 change: 1 addition & 0 deletions .angular-cli.json
Expand Up @@ -19,6 +19,7 @@
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
"scripts": [],
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -21,7 +21,9 @@
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"bootstrap": "^4.0.0",
"core-js": "^2.4.1",
"ngx-bootstrap": "^2.0.2",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
},
Expand Down
21 changes: 1 addition & 20 deletions src/app/app.component.html
@@ -1,20 +1 @@
<!--The content below is only a placeholder and can be replaced.-->
<div style="text-align:center">
<h1>
Welcome to {{ title }}!
</h1>
<img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
</div>
<h2>Here are some links to help you start: </h2>
<ul>
<li>
<h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
</li>
</ul>

<navbar></navbar>
3 changes: 2 additions & 1 deletion src/app/app.component.ts
@@ -1,3 +1,4 @@
// core
import { Component } from '@angular/core';

@Component({
Expand All @@ -6,5 +7,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';

}
8 changes: 5 additions & 3 deletions src/app/app.module.ts
@@ -1,13 +1,15 @@
// core
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


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

import { NavbarComponent } from './navbar/navbar.component';

@NgModule({
declarations: [
AppComponent
AppComponent,
NavbarComponent
],
imports: [
BrowserModule
Expand Down
Empty file.
1 change: 1 addition & 0 deletions src/app/navbar/navbar.component.html
@@ -0,0 +1 @@
<p>[navbar component]</p>
11 changes: 11 additions & 0 deletions src/app/navbar/navbar.component.ts
@@ -0,0 +1,11 @@
// core
import { Component } from '@angular/core';

@Component({
selector: 'navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.css']
})
export class NavbarComponent {

}
1 change: 1 addition & 0 deletions src/index.html
Expand Up @@ -7,6 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit a797be9

Please sign in to comment.