forked from code4romania/civichq-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New page terms and cond code4romania#58
- Loading branch information
Showing
7 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/app/pages/TermsPage/components/terms/terms.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="terms"> | ||
<div class="page-title"> | ||
<h1> | ||
Terms and conditions | ||
</h1> | ||
</div> | ||
<div class="row"> | ||
Demo content | ||
</div> | ||
</div> |
Empty file.
30 changes: 30 additions & 0 deletions
30
src/app/pages/TermsPage/components/terms/terms.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { ActivatedRoute, Params } from '@angular/router'; | ||
import { AppService } from './../../../../services/app.service'; | ||
import { App } from './../../../../shared/models/app.model'; | ||
|
||
import './terms.component.scss'; | ||
|
||
@Component({ | ||
selector: 'terms', | ||
templateUrl: './terms.component.html' | ||
}) | ||
|
||
export class TermsComponent implements OnInit { | ||
apps: App; | ||
constructor(private route: ActivatedRoute, private appService: AppService, private router: Router) { | ||
} | ||
|
||
ngOnInit() { | ||
this.route.params.subscribe((data) => { | ||
}) | ||
} | ||
goToApp(app) { | ||
let appName = app.appName = app.appName.replace(/\s+/g, ''); | ||
let link = ['/apps', app.id, appName]; | ||
this.router.navigate(link); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { TermsComponent } from '../components/terms/terms.component'; | ||
|
||
const appRoutes: Routes = [ | ||
{ | ||
path: 'terms', component: TermsComponent | ||
} | ||
]; | ||
export const TermsRouting = RouterModule.forChild(appRoutes); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { HttpModule } from '@angular/http'; | ||
|
||
import { TermsComponent } from './components/terms/terms.component'; | ||
import { TermsRouting } from './config/terms.routing'; | ||
|
||
@NgModule({ | ||
imports: [BrowserModule, HttpModule, TermsRouting], | ||
declarations: [TermsComponent], | ||
exports: [TermsComponent] | ||
}) | ||
export class TermsModule {} |