Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
_armoco_
Partner - Creator II
Partner - Creator II

Does using Angular JS to create extensions have any benefits?

Hi,

While creating Qlik extensions is there any benefit of using Angular JS to code? So far I've been doing it the classic method (Ex: using 'paint' instead of 'template'). I'm not familiar with Angular as of now so I've no idea if its better this way.

Thanks and Regards,

Arjun

5 Replies
lwileczek
Contributor III
Contributor III

Can someone from Qlik please answer this?

zebhashmi
Specialist
Specialist

I think No

r_v_vliet
Partner - Contributor
Partner - Contributor

The advantages of AngularJs over javascript and jQuery are:

  • Two way data binding
  • Directives
  • Dependency injection
  • MVC framework
  • Easier for single page applications
  • (And a lot more..)

There are a lot of blog posts on this topic, if you want to know more. The main concepts are also listed on the Qlik website:

https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Extensions/Content/extensions-angula...

Edit: This may be a good place to start Two Approaches, the 'Classic' One & the Angular Way | qliksite.io

lwileczek
Contributor III
Contributor III

Thank you for taking the time to respond. I am curious though, doesn't Qlik use RequireJS? that's why when you write extensions you have to use


define(['dependencies', function($, qlik, ng) {
  //do stuff here
} ]);

Or am I wrong? How would we use angularJS's async dependency injection?

Sri1223
Contributor
Contributor

Hello,

I hope this may help you -https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/Extensions/Content/Sense_Extensi... .Please have a look. Regarding- Does use  Angular JS to create extensions have any benefits?

 

Regards,

Srija