-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
实现功能点 #1
Comments
|
muyuqiu001
added a commit
that referenced
this issue
Feb 24, 2017
|
muyuqiu001
added a commit
that referenced
this issue
Feb 24, 2017
muyuqiu001
added a commit
that referenced
this issue
Feb 24, 2017
muyuqiu001
added a commit
that referenced
this issue
Feb 24, 2017
仿照这个可以写一下: |
@Component({
moduleId: module.id,
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<ul>
<li *ngFor="let data of datas"
<span>{{data.id}}</span> {{data.file}}
</li>
</ul>
`,
}) 有报错: |
在公司没有问题: import { Component } from '@angular/core';
import { ReviewData } from './reviewdata';
const DATAS: ReviewData[] = [
{
id: "zkasdf1",
reviewer: "00316400",
reviewtime: "201702242200",
file: "12.txt",
committer: "00388224",
},
{
id: "zkasdf12",
reviewer: "00316400",
reviewtime: "201702232200",
file: "123.txt",
committer: "00388224",
},
{
id: "zkasdf123",
reviewer: "00316400",
reviewtime: "201702235200",
file: "1234.txt",
committer: "00388224",
},
];
@Component({
moduleId: module.id,
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<div>
<table border="2">
<thead>
<td>
Commit Id
</td>
<td>
Reivew Person
</td>
<td>
Review Time
</td>
<td>
Reivew File
</td>
<td>
Commit Person
</td>
</thead>
<tr *ngFor="let data of datas">
<td>
{{data.id}}
</td>
<td>
{{data.reviewer}}
</td>
<td>
{{data.reviewtime}}
</td>
<td>
{{data.file}}
</td>
<td>
{{data.committer}}
</td>
</tr>
</table>
</div>
`,
})
export class AppComponent {
title = 'The committed details of This Project';
datas = DATAS;
} |
muyuqiu001
added a commit
that referenced
this issue
Feb 25, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: