如何使用带有angularjs的select2 4.0.0

时间:2015-08-04 08:40:26

标签: angularjs angularjs-select2

我试图在我的角度js代码中使用select2 4.0.0。但它根本不影响代码。



indexApp.controller('myAllyController', function($rootScope, $scope, $route, $localStorage,$routeParams, $location, $http, $window, $filter,$modal,GPlusAuthService1,$q) {
	
	/*Select 2 tool*/
	$(document).ready(function(){
		$('select').select2();
	});

<select>
   <option ng-repeat="aTN in allyTypeName" value="{{aTN.alliesTypeID}}">{{aTN.alliesTypeName}}></option>
</select>
&#13;
&#13;
&#13;

我正在使用上面的代码....我在我的主文件中包含css和js文件仍然无法正常工作..

0 个答案:

没有答案
相关问题