Skip to content

Instantly share code, notes, and snippets.

@joncodo
Created November 26, 2014 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joncodo/1f1c09594d150f23fb3a to your computer and use it in GitHub Desktop.
Save joncodo/1f1c09594d150f23fb3a to your computer and use it in GitHub Desktop.
Angular stackoverflow 23498356
<div ng-app="myApp">
<div ng-controller="MoviesCtrl">
<label class="item-input-wrapper">
<i class="icon ion-ios7-search placeholder-icon"></i>
<input type="search" placeholder="Search" ng-change="search()" ng-model="input.searchText" />
</label>
</div>
</div>
angular.module('myApp', [])
.controller('MoviesCtrl', function($scope) {
$scope.input = {
searchText: 'demo'
};
$scope.search = function() {
console.log("SearchText:" + $scope.input.searchText)
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment