Skip to content

Instantly share code, notes, and snippets.

@ameyms
Created August 15, 2014 14:56
Show Gist options
  • Save ameyms/79169d4c208e5552a009 to your computer and use it in GitHub Desktop.
Save ameyms/79169d4c208e5552a009 to your computer and use it in GitHub Desktop.
Angular Blasphemy
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