1var app = angular.module('myApp', []);
2app.filter('searchName', function() {
3 return function(input) {
4 return input + '!';
5 }
6});
7
8app.controller('myCtrl', function($scope) {
9
10 $scope.myFunc = function() {
11 console.log('Hello world!');
12 };
13});