top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to integrate angular and jquery with each other ?

0 votes
410 views
How to integrate angular and jquery with each other ?
posted Jan 24, 2017 by Ramya

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Integration jQuery plugins in AngularJS

create a directive

 App.directive('directiveName', function() {
        return {
            restrict: 'A',
            link: function(scope, element, attrs) {
                $(element).'pluginActivationFunction'(scope.$eval(attrs.directiveName));
            }
        };
    });

and then in the html call the script and the directive

<div directiveName ></div>
<script type="text/javascript" src="pluginName.js"></script>
answer Feb 8, 2017 by Pramod Huilgol
...