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,


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>:

Thanks Enchev, I will try your suggestion!