Update with NPM
Fix css and function name
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { ServiceComm } from "../services/service-comm.service";
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ServiceComm } from '../services/service-comm.service';
|
||||
|
||||
@Component({
|
||||
selector: "app-root",
|
||||
templateUrl: "./app.component.html",
|
||||
styleUrls: ["./app.component.css"]
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.css']
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
title = "app";
|
||||
title = 'app';
|
||||
showMenu = false;
|
||||
|
||||
constructor(private serviceComm: ServiceComm) {}
|
||||
constructor(private serviceComm: ServiceComm) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.serviceComm.componentTitle.subscribe(title => (this.title = title));
|
||||
|
||||
Reference in New Issue
Block a user