javascript - Using jquery Uniform plugin with AngularJS -


i using following angularjs directive integrate uniform jquery plugin angularjs

myapp.directive('pluginuniform', function() {     return {         restrict: 'a',         link: function(scope, element, attrs) {             element.show().uniform();             if (!element.parents(".checker").length) {                 element.show().uniform();             }          }     }; }); 

the issue having not show checked ng-checked="true" values. when remove plugin-uniform attribute shows correct result.

for example, value $scope.isemailchecked = true; set in controller, following code ng-checked="isemailchecked" not show checked checkbox.

<div class="">     <label>         <input type="checkbox" plugin-uniform ng-model="isemailchecked" ng-true-value="true" ng-false-value="false" ng-checked="isemailchecked">         agree      </label> </div> 

could me resolve issue?

try this:

window.onload = function(){            // initiate layout , plugins     ...     settimeout(function(){ $.uniform.update(); }, 300); }; 

Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -