Typescript / Angular 2 management in Front developement

Are you missing a feature? Request its implementation here.
Johann
Posts: 199
Joined: Wed Jun 17, 2015 12:46 pm

Typescript / Angular 2 management in Front developement

Post by Johann »

Hello,

We are going to start doing more and more development on the FRONT part of Author Web and in particular adding custom dialogs and panels.

We have looked at the documentation https://www.oxygenxml.com/maven/com/oxy ... 0.0/jsdoc/


The FRONT development in our company is on Angular 2 and therefore Typescript.

So, we are looking to make sure / see the possibilities so that our FRONT development environment on Author Web is as close as possible to our company's strategy to allow sharing and reuse.
Our goal is that eventually the Author Web dialogs and panels can contain Angular 2 components.

Have you already experimented with the development of Angular 2 on the Author Web dialgos and panels? Do you see any constraints?

Beyond Angular, and still in a desire to facilitate the development of HMIs, we found that it is not always intuitive and easy to develop on the FRONT Author Web side in our IDEs (no auto-completion and integrated description of APIs present in the "jsapi" lib).
Is there a will / possibility to manage the API and the development in Typescript to facilitate its use and to have a more intuitive development environment?

Thank you for your response,

Johann
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Typescript / Angular 2 management in Front developement

Post by cristi_talau »

Hello,

We do not have much experience with Angular. We have a sample plugin that uses React to render a form-control here: https://github.com/oxygenxml/web-author ... rm-control . You may be able to draw some inspiration from it.

Regarding the IDE support, we have a tutorial on how to configure WebStorm to offer content completion in plugins: https://www.oxygenxml.com/doc/versions/ ... i-ide.html . We did not test it with other editors such as VSCode. Can you share what IDE setup you are using?

Regarding the TS support, we analyzed the possibility to offer a .d.ts file for the Web Author API. For the time being we decided to offer just plain JS files annotated with JsDoc because it was easier for us to maintain. I registered your vote on an internal issue to offer also a .d.ts file. If the issue starts to get traction we can increase its priority.

Best,
Cristian
Post Reply