import { Component } from '@angular/core';
import { Server } from "./server";
import { ServerGridModel } from "./models/serverGrid.model";
import * as data from '../serverGridExample.json';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  title = 'atlas-config-generator';

  constructor(private server: Server) {
    // Temporary just load all the grid. Remove later.
    this.server.serverGrid = new ServerGridModel().deserialize((data as any).default);
    console.log(this.server.serverGrid);
  }
}
