UNPKG

consumerportal

Version:

mydna Custimised for you

30 lines (24 loc) 955 B
/// <reference path="../../includes.ts" /> module resultsProfileCtrl { import IPatientService = services.IPatientService; import IPatientGenoType = services.IPatientGenoType; import IMedicationService = services.IMedicationService; class Controller { public patientGenoTypes: IPatientGenoType[]; public loaded = false; public navigation: any[] = this.medicationService.navigation(); static $inject = ['patientService', 'medicationService']; constructor( private patientService: IPatientService, private medicationService: IMedicationService ) { this.patientService.genotypes().then((values: IPatientGenoType[]) => { this.patientGenoTypes = values; this.loaded = true; }); } } angular .module('app') .controller('medsProfileCtrl', Controller); }