import {Component, ElementRef, OnInit} from \'angular2/core\';
declare var jQuery:any;
@Component({
selector: \'jquery-integration\',
templat
tag.
$('document').ready((function($) {
return function() {
// DOM is ready and $ is a reference to jQuery
// It's time to things done using $
};
})(jQuery));
Pros:
However, if you need to use the jQuery inside the components use services or directives.
If you have a problems with loading a partial views use jQuery event handler on document node and jQuery window load handler.