Quantcast
Channel: How to export simple TypeScript class in Angular 4 module? - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

How 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
Browsing all 3 articles
Browse latest View live




Latest Images