content-menu.ts
1.2 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
56
57
58
import { Injectable } from '@angular/core';
import { Menu } from './define-menu';
/*
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 ContentsMenu {
menu: Menu[];
constructor() {
this.menu = this.createMenu();
}
private createMenu(): Menu[] {
var menu = [{
menuId: 0,
grade: '1',
title: '身のまわりの現象'
}, {
menuId: 1,
grade: '1',
title: '身のまわりの物質'
}, {
menuId: 2,
grade: '1',
title: '電流とその利用(1)'
}, {
menuId: 3,
grade: '1',
title: '電流とその利用(2)'
}, {
menuId: 4,
grade: '1',
title: '化学変化と原子・分子(1)'
}, {
menuId: 5,
grade: '1',
title: '化学変化と原子・分子(2)'
}, {
menuId: 6,
grade: '1',
title: '植物の生活と種類'
}, {
menuId: 7,
grade: '1',
title: '大地の変化'
}];
return menu;
}
}