Created
March 26, 2015 03:29
-
-
Save Foovanadil/8c22c7f69e128adc5edc to your computer and use it in GitHub Desktop.
HTML for Search Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>ngFilters</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.1/css/foundation.css"> | |
</head> | |
<body> | |
<!--ng-app value matches Angular module string name in js file--> | |
<div ng-app="myApp"> | |
<div ng-controller="AvengersCtrl"> | |
<!--<input type="text" ng-model="searchText" />--> | |
<!--<input type="text" ng-model="search.$" />--> | |
<!--<input type="text" ng-model="search.name" />--> | |
<input type="text" ng-model="search.$" /> | |
<table > | |
<!--<tr ng-repeat="actor in avengers.cast | filter:searchText">--> | |
<tr ng-repeat="actor in avengers.cast | filter:search"> | |
<td highlight bind-field="actor.name">{{actor.name}}</td> | |
<td highlight bind-field="actor.character">{{actor.character}}</td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
<script src="../../js/2/ngFilters.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment