Skip to content

Commit

Permalink
fix:readme.md 调整
Browse files Browse the repository at this point in the history
  • Loading branch information
QiuMing committed Jul 21, 2016
1 parent 3d32172 commit cbf8871
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ npm install
npm start
```

* 首页默认没有内容,访问
* A4版本 http://localhost:3000/print
* 详情版本 http://localhost:3000/resume

#### 截图效果
![](https://github.com/QiuMing/resume-angular2/blob/master/img/my.png)

Expand All @@ -15,8 +19,7 @@ npm start
* angualr 路由跳转问题

#### 带引进功能
* 背景音乐
* 打分项
* 打分项



3 changes: 3 additions & 0 deletions app/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<router-outlet></router-outlet>
<a [routerLink]="['/resume']"></a>
<a [routerLink]="['/print']"></a>
18 changes: 18 additions & 0 deletions app/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {
Routes,
ROUTER_DIRECTIVES
} from '@angular/router';
import {PrintComponent} from './print';
import {ResumeComponent} from './resume';
@Component({
selector: 'my-app',
templateUrl: 'app/app.html',
encapsulation: ViewEncapsulation.None,
directives: [ROUTER_DIRECTIVES]
})
@Routes([
{ path: '/print', component: PrintComponent } ,// useAsDefault: true }, coming soon!
{ path: '/resume', component: ResumeComponent }
])
export class AppComponent { }
28 changes: 28 additions & 0 deletions app/print.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {Component} from '@angular/core';
import {Routes, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from '@angular/router';
import {
PROFILE,
SKILLS,
TECHS,
PERSONALPROJECTS,
COMPANYPROJECT,
MAINDES,
OTHERDES,
ASIDE
} from './resume-data';

@Component({
selector: 'print-app',
templateUrl: 'app/print.html',
styleUrls: ['app/print.css', 'app/fontello.css']
})
export class PrintComponent {
profile = PROFILE;
techs = TECHS;
otherDes = OTHERDES;
mainDes = MAINDES;
skills = SKILLS;
aside = ASIDE;
personalProjects = PERSONALPROJECTS;
companyProjects = COMPANYPROJECT;
}

0 comments on commit cbf8871

Please sign in to comment.