place it inside a class, and make it static
export class GlobalVars {
public static c: any = 10;
}
after importing it from any other file
GlobalVars.c = 100;
place it inside a class, and make it static
export class GlobalVars {
public static c: any = 10;
}
after importing it from any other file
GlobalVars.c = 100;