我使用Angular.js
和Bootstrap
来构建我的应用程序。一个指令将输入标签插入到DOM中。我想在输入标签上使用slider
来修改它。我跟着tutorial。引导滑块不起作用
tag = '<input type="text" class="slider" ng-model="costPerDay"/>';
// pass it to a template and push to DOM
$('.slider').slider({
max: 500,
orientation: 'horizontal',
selection: 'after'
});
的slider
函数存在jQuery对象,但调用它没有任何效果,没有任何例外!我的输入仍然只是一个<input>
标签。
我的代码有什么问题?什么没有考虑到?一些错误或依赖关系?
你需要编写此 – 2013-04-30 13:34:25
一个指令,你的意思是jQueryUI的滑块向右 – 2013-04-30 13:35:28