Answer by Nestor for How to export simple TypeScript class in Angular 4 module?
The two options.export class Params {language: string;country: string;variant: string;dateFormat: string;briefDateTimeFormat: string;decimalFormat: string;constructor(obj: any) { this.language = obj...
View ArticleAnswer by Z. Bagley for How to export simple TypeScript class in Angular 4...
The problem is in your module definition. You should directly import Params into each component/service where the class is required.public-api.tsimport { Params } from...
View ArticleHow to export simple TypeScript class in Angular 4 module?
I have a simple TypeScript class that I want to package with a module and eventually export that module as a library using ng-packagr. e.g. My class definition is - export class Params { language:...
View Article
More Pages to Explore .....