content-keyword.ts
1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Injectable } from '@angular/core';
import { Keyword } from './define-keyword';
/*
Generated class for the DataService provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/
@Injectable()
export class ContentsKeyword {
keyword: Keyword[];
constructor() {
this.keyword = this.createKeyword();
}
private createKeyword(): Keyword[] {
var keyword = [{
menuId: 0, //6文字
words: ["う","ご","う","こ","い","せ"],
answer: 'こうごうせい'
}, {
menuId: 1, //7文字
words: ["あ","ん","り","べ","し","だ","き"],
answer: 'しべりあきだん'
}, {
menuId: 2, //7文字
words: ["し","う","る","い","そ","よ","う"],
answer: 'そうしようるい'
}, {
menuId: 3, //6文字
words: ["へ","く","ん","か","が","か"],
answer: 'かがくへんか'
}, {
menuId: 4, //5文字
words: ["ゆ","ぶ","う","き","つ"],
answer: 'ゆうきぶつ'
}, {
menuId: 5, //7文字
words: ["こ","と","ど","み","ん","あ","り"],
answer: 'みとこんどりあ'
}, {
menuId: 6, //6文字
words: ["か","お","せ","い","う","い"],
answer: 'かいおうせい'
}, {
menuId: 7, //6文字
words: ["く","ぼ","ま","さ","い","う"],
answer: 'さいぼうまく'
}];
return keyword;
}
}