resdy to merge
[u/erikhf/frm.git] / src / components / app / app.ts
CommitLineData
cb2c4ba8
JHR
1import {bootstrap, Component, CORE_DIRECTIVES} from 'angular2/angular2';
2import {map} from '../map/map';
4bf38478
EHF
3@Component({
4 selector: 'hello-world',
36d9daeb 5 directives: [CORE_DIRECTIVES],
4bf38478
EHF
6 template: `
7 <h1>Hello World</h1>
8 <p>This is just a sample template yeah!</p>
e84b3980 9 <p>{{getApiURI()}}</p>
4bf38478
EHF
10 `
11})
4bf38478 12
36d9daeb 13
e84b3980
EHF
14class App {
15
16 getApiURI(){
17 return dhisAPI;
36d9daeb 18 }
4bf38478 19
36d9daeb
EHF
20}
21
e84b3980 22bootstrap(App);