matrix-dimension/web/app/admin/home/home.component.ts
2017-12-24 02:03:02 -07:00

21 lines
584 B
TypeScript

import { Component } from "@angular/core";
import { AdminApiService } from "../../shared/services/admin/admin-api.service";
import { FE_DimensionConfig } from "../../shared/models/admin_responses";
@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;
});
}
}