How to connect a Typescript file in Angularjs Nativescript project?

I want to connect the file, but produces an error
File 1

class GlobalDataClass {
 public static articles=[1,2,3,4,5];

export {GlobalDataClass};
File 2

import {GlobalDataClass} from "Data"

 selector: "Home",
 templateUrl: "./home.component.html",
 styleUrls: ['./home.component.css']
export class HomeComponent implements OnInit {

 public articles= GlobalDataClass.articles;

 ngOnInit(): void { 


VS error Code is not given. All as in the descriptions of the articles. Only get data in the app I can't.
What could be the reason?
March 19th 20 at 09:13
0 answer

Find more questions by tags TypeScriptAngularJavaScript