Skip to content

Instantly share code, notes, and snippets.

@javierguerrero
Last active August 29, 2015 14:22
Show Gist options
  • Save javierguerrero/60f4d4e173792c5c8394 to your computer and use it in GitHub Desktop.
Save javierguerrero/60f4d4e173792c5c8394 to your computer and use it in GitHub Desktop.
var app = angular.module('myApp', []);
function Ctrl1($scope) {
$scope.toto = function(){
alert('toto');
};
$scope.titi = function(){
alert('titi');
};
}
<div ng-controller="Ctrl1">
<h2 ng-click="toto(); titi();">Click me</h2>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment