-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
28 lines (28 loc) · 976 Bytes
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
layout: default
title: Поиск
---
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"></script>
<div ng-app="myapp">
<div class="my-container" ng-controller="MyController">
<nav id="menu-contato">
<input type="text" class="input-search" placeholder="Например: AngularJS" ng-model="expressao" />
<br />
<div class="post list-search" ng-repeat="post in posts | filter:expressao">
<a class="links" href="{(post.url)}">{(post.title)}</a>
</div>
</nav>
</div>
</div>
<script type="text/javascript">
var myApp = angular.module('myapp', []).config([
'$interpolateProvider', function($interpolateProvider) {
return $interpolateProvider.startSymbol('{(').endSymbol(')}');
}
]);
myApp.controller('MyController', function($scope) {
$scope.posts = {% include posts.html %};
});
</script>
<br />
<br />