Currently, I am developing kibana plugins and we have a angular2 based application that i am asked to develop as plugin. Is it possible to use angular 2 based kibana plugin or would i have to downgrade existing angular 2 application to angular 1.x ?
Note : I am currently using Es version 2.3 & kibana version 4.3.0.
I haven't checked but there may be a way to transpile Angular 2 into Angular 1.4 (what Kibana lives in). And if such a thing exists, then you would want to alter a build process in your plugin to transpile the Angular 2 into Angular 1.4 THEN run through the typical Kibana build procedures.
The other way would be to create a secondary build procedure within Kibana itself to compile and optimize your Angular 2 plugin separate from Kibana. In the end it's all vanilla JS anyway.
I would recommend just writing the plugin in Angular 1.4, it'll save you a ton of headaches. And in the case of option 2 it'll actually save the size of the plugin (imagine having all of the bloat of Angular 2 just for one plugin).
You should be able to use any framework to build isolated apps in Kibana. We use React to build parts of the monitoring application for instance. That said, it's not always a smooth process and you probably won't be able to integrate with other Kibana applications unless you use angular 1.4.