matrix-dimension/web/app/admin/home/home.component.ts

21 lines
584 B
TypeScript
Raw Normal View History

2017-12-23 20:47:41 -05:00
import { Component } from "@angular/core";
import { AdminApiService } from "../../shared/services/admin/admin-api.service";
import { FE_DimensionConfig } from "../../shared/models/admin_responses";
2017-12-23 20:47:41 -05:00
@Component({
templateUrl: "./home.component.html",
styleUrls: ["./home.component.scss"],
})
export class AdminHomeComponent {
public isLoading = true;
public config: FE_DimensionConfig;
constructor(adminApi: AdminApiService) {
adminApi.getConfig().then(config => {
this.config = config;
this.isLoading = false;
});
2017-12-23 20:47:41 -05:00
}
}