Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
the-bug authored and the-bug committed Jun 16, 2018
1 parent b735bf5 commit 28ee97e
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 21 deletions.
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"problemMatcher": []
}
]
}
21 changes: 1 addition & 20 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -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>

<router-outlet></router-outlet>
25 changes: 24 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { Routes, RouterModule } from '@angular/router';

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


const appRoutes: Routes = [
{
path: 'Monitor',
loadChildren: './level-height-indicator/level-height-indicator.module#LevelHeightIndicatorModule'
},

{
path: '',
redirectTo: 'Monitor',
pathMatch: 'full'
},
{
path: '**',
redirectTo: 'Monitor'
}
];

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
BrowserModule,
RouterModule.forRoot(
appRoutes
)
],
providers: [],
bootstrap: [AppComponent]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MainViewComponent } from './main-view/main-view.component';

const routes: Routes = [
{
path: '',
component: MainViewComponent
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LevelHeightIndicatorRoutingModule { }
15 changes: 15 additions & 0 deletions src/app/level-height-indicator/level-height-indicator.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { LevelHeightIndicatorRoutingModule } from './level-height-indicator-routing.module';
import { MainViewComponent } from './main-view/main-view.component';
import { ResultViewComponent } from './result-view/result-view.component';

@NgModule({
imports: [
CommonModule,
LevelHeightIndicatorRoutingModule
],
declarations: [MainViewComponent, ResultViewComponent]
})
export class LevelHeightIndicatorModule { }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<app-result-view></app-result-view>
15 changes: 15 additions & 0 deletions src/app/level-height-indicator/main-view/main-view.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-main-view',
templateUrl: './main-view.component.html',
styleUrls: ['./main-view.component.css']
})
export class MainViewComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
result-view works!
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-result-view',
templateUrl: './result-view.component.html',
styleUrls: ['./result-view.component.css']
})
export class ResultViewComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

0 comments on commit 28ee97e

Please sign in to comment.