Created
August 15, 2014 14:56
-
-
Save ameyms/79169d4c208e5552a009 to your computer and use it in GitHub Desktop.
Angular Blasphemy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('myApp').controller( function ( $scope ) { | |
var foo = $('button.foo'), | |
bar = $('input[data-role="bar"]'), | |
baz = $('div.status'), | |
flag = true; | |
foo.click( function () { | |
if ( flag ) { | |
bar.hide(); | |
baz.addClass( 'done' ); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment