Thursday, July 12, 2018

How Angular Filter Transformation from angular Js to Angular ( Js to TypeScript)

Angular Filter Transformation from angular Js to Angular ( Js to TypeScript)




$scope.sel_view = $filter('filter')($scope.list, function(value) {  return value.viewSeq == seq;})[0];

this.sel_view = this.viewList.filter((view: any) =>{  return view.viewSeq == seq ;})[0];