All files / src/app/home home.component.ts

95.65% Statements 22/23
62.07% Branches 18/29
100% Functions 5/5
100% Lines 18/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57                            1x 1x 1x 2x 1x   1x 1x   1x                                 1x 1x 1x         1x         1x 1x 1x   1x
/* File Name: home.component
Version Number: v1.0
Author Name: Tobias Bester
Project Name: Ninshiki
Organization: Software Sharks
Requirements: Refer to the Ninshiki User Manual at https://github.com/OrishaOrrie/SoftwareSharks/blob/master/Documentation/User%20Manual.pdf
Update History:
----–––-––-–––---––––---––––--–––---––––-
Date––––Author––––Description–––––––––
01/03/2018 - Tobias - Created Home
----–––-––-–––---––––---––––--–––---––––-
Test Cases: home.component.spec.ts
Functional Description: Acts as landing page and provides routes to the other pages */
 
/**
 * File Name:       home.component
 * VIersion Number:  v1.0
 * Author:          Tobias BesterE
 * Project Name:    Ninshiki
 * Organization:    Software Sharks
 * User Manual:     Refer to https://github.com/OrishaOrrie/SoftwareSharks/blob/master/Documentation/User%20Manual.pdf
 * UEpdate History:
 * ------------------------------------------
 * Date         Author        Description
 * 01/03/2018   Tobias        Created components
 * ------------------------------------------
 * Test Cases:      home.component.spec.ts
 * Functional Description:
 *  Acts as landing page for the web app and provides links to application functions.
 */
 
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();
  }
 
}