“AngularJS Slick Carousel Filter berdasarkan atribut” Kode Jawaban

AngularJS Slick Carousel Filter berdasarkan atribut

$scope.updateNumber4 = function () {
  $scope.slickConfig4Loaded = false;
  $timeout(function() { 
    $scope.slickConfig4Loaded = true;
  });
};
SAMER SAEID

AngularJS Slick Carousel Filter berdasarkan atribut

<!-- You have Your Filter -->
<input type="text" ng-model="filter" ng-change="updateNumber4()"/>

<!-- You have your SlickCarousel, it's important to include ng-if -->
<slick class="slider" settings="slickConfig4" ng-if="slickConfig4Loaded">

  <!-- IMPORTANT: I'm filtering in ng-repeat by the ng-model in the input -->
  <div ng-repeat="i in number4 | filter:filter" >
    <div style="width:{{ i.label }}px;height:100px; background:{{i.background}}">{{i.label}}</div>
  </div>
</slick>
SAMER SAEID

Jawaban yang mirip dengan “AngularJS Slick Carousel Filter berdasarkan atribut”

Pertanyaan yang mirip dengan “AngularJS Slick Carousel Filter berdasarkan atribut”

Lebih banyak jawaban terkait untuk “AngularJS Slick Carousel Filter berdasarkan atribut” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya