45
rated 0 times
[
49]
[
4]
/ answers: 1 / hits: 30528
/ 6 Years ago, tue, july 24, 2018, 12:00:00
suppose I have a class in typescript file like below:
export class app {
public variable1: string;
public variable2: number;
public variable3 = "Hello world"
constructor(count: number) {
this.variable1 = "something",
this.variable2 = 1 + count;
}
}
now in another file, I am exporting this class as:
import { app } from './directory';
let pageApp:app;
now, how can I access app
variables here?
More From » typescript