Custom Typescript Shared Library

Hi, I have some typescript functions that I want to share across multiple pages. What is the best way to do it? I have created a typescript file inside the client/src/app/util folder.

I want to expose the methods to several pages and use them on button click events, for example.

Waiting for your great support,

Regards,

Hi Jose,

You can import it in PAGENAME.component.ts - Radzen will not overwrite it on subsequent code generation. When using the functions in designer you may need to cast this to <any>:
(<any>this).myFunction()

Thanks Enchev, I will try your suggestion!

Hi, for example, I would like to use this js library

How should I modify my page.component.ts to import the library, and how should I call it inside my custom javascript execute code?

Thanks for your help!