Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

_armoco_
Contributor

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

4 Replies
lwileczek
New Contributor

Re: Does using Angular JS to create extensions have any benefits?

Can someone from Qlik please answer this?

zebhashmi
Valued Contributor

Re: Does using Angular JS to create extensions have any benefits?

I think No

r_v_vliet
New Contributor

Re: Does using Angular JS to create extensions have any benefits?

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
New Contributor

Re: Does using Angular JS to create extensions have any benefits?

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?