Skip to content

Instantly share code, notes, and snippets.

@saposki
Last active April 29, 2016 23:18
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 saposki/ba73a83eacb7acb5e9a0c166b5fadd45 to your computer and use it in GitHub Desktop.
Save saposki/ba73a83eacb7acb5e9a0c166b5fadd45 to your computer and use it in GitHub Desktop.
//filter.js
var app = angular.module('saposkiFilter', []);
app.controller('MainCtrl', ['$scope', function($scope){
$scope.callSepia = function(){
console.log('Sepia filter applied');
}
$scope.callInvert = function(){
console.log('Invert filter applied');
}
$scope.callSaturate = function(){
console.log('Saturation filter applied');
}
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment