File
Metadata
selector |
app-home |
styleUrls |
home.component.css, .../../node_modules/hover.css/css/hover-min.css |
templateUrl |
home.component.html |
import { Component, OnInit } from '@angular/core';
import { ModelLoaderService } from './../model/model-loader.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css', '../../../node_modules/hover.css/css/hover-min.css'],
animations: []
})
export class HomeComponent implements OnInit {
/**
* @ignore
*/
constructor(public ml: ModelLoaderService) { }
/**
* The model loader service should start loading the model from the Internet upon home page entrance
*/
ngOnInit() {
console.log('Fetching model');
this.ml.loadModel();
}
}