import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <p>Alive!</p> <app-vp-root></app-vp-root>`, styleUrls: ['./app.component.css'] }) export class AppComponent { someVariable: someType = somevalue someFunction(){ console.log(this.someVariable) } ***//can i access through other than this.someVariable line AppComponent.someVariable;*** }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)