primeng.ts Exports

UI Components for Angular
Post Reply
mcwebdev
Posts: 68
Joined: 03 Mar 2016, 02:16

09 Mar 2016, 00:46

What is primeng.ts doing with all those exports? I notice primeng starter doesn't include this file.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Mar 2016, 11:08

It exports the available components and creates a shortcut so that they can be imported to your class by "import {DataTable} from 'primeng/primeng'".

It is transpiled to native es5 javascript so not included or necessary in distribution. PrimeNG is written in typescript but distributes as es5 javascript in commonjs module format.

Here is more information;

https://medium.com/@OCombe/how-to-publi ... .4f38004oj

mcwebdev
Posts: 68
Joined: 03 Mar 2016, 02:16

10 Mar 2016, 00:50

Thanks for the info. I will take a look at that link and figure out how to get it into the starter project.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests