【发布时间】:2013-12-17 10:23:19
【问题描述】:
在我的应用程序中,通过 angular 编写,我为特定类型的输入定义了一个指令...
greengo.directive('selectize', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
$(element).selectize({ ... });
}
};
});
元素是这样声明的..
<select selectize context = "sensors" ng-model = "newSensor.id"></select>
it works fine.. but my model "newSensor.id" isn't updated when an option is selected...
我哪里错了?
【问题讨论】:
标签: jquery angularjs selectize.js