how do you include and use custom libraries like sweetalert/jquery-sparkline with angular 1.5 ?
Suyash Soni
1

I don’t know this one but when you need to use a jQuery based component in an angular application, you have to create a directive.

Rule is:

when in need to manipulate DOM in angular you need a directive (same in angular > 2.x). In case of using a jquery component wrap it in a custom directive.

Well known ng-class is an example of embedded angular directive that manipulate the DOM.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.