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
Post a Comment