Skip to content

Instantly share code, notes, and snippets.

@srph
Created October 25, 2014 07:44
Show Gist options
  • Select an option

  • Save srph/ec3fc4deaec890ba83a4 to your computer and use it in GitHub Desktop.

Select an option

Save srph/ec3fc4deaec890ba83a4 to your computer and use it in GitHub Desktop.
[AngularJS] base ctrl
+(function(angular, _, undefined) {
function BaseIndexCtrl($scope) {
$scope.onColChange = function() {
localStorageService.set('residents', $scope.columns);
};
}
angular
.module('app')
.controller('BaseIndexCtrl', BaseIndexCtrl);
})(angular, _);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment