Tag: angular2 template

如何在角度2中使用jquery?

我知道如果我需要在角度1.3或1.4中使用第三方库。我需要制作该东西的指令并在我们的项目中使用它。现在我使用角度2.0 。我想以angular 2 https:/ /jqueryui.com/autocomplete/或这个https://jsfiddle.net/2rgrmv4q/ 我可以在angular2使用jquery angular2 ? 1.如何在角度中使用第三方库。 2.如何在角度2中自动完成jquery。 这是我的代码http://plnkr.co/edit/BxMcNXLjVOJBAIiBGL5Y?p=preview //代码在这里 import {Component,View} from ‘angular2/core’; @Component({ selector:’my-app’ templateUrl: ‘home/home.html’, }) export class AppComponent { constructor() { } }