Skip to content

Instantly share code, notes, and snippets.

@mranosa
Created October 19, 2012 17:02
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 mranosa/3919349 to your computer and use it in GitHub Desktop.
Save mranosa/3919349 to your computer and use it in GitHub Desktop.
inspectormanApp.controller('LoginCtrl', function($scope) {
$scope.user = {
username : "blah",
password : ""
}
});
<div class="login-box">
<form class="form-horizontal" ng-model="user">
<input type="text" id="username" placeholder="Username">
<input type="text" id="password" placeholder="Password">
<div class="control-group">
<div class="controls pull-right" style="padding-right: 30px;">
<button type="submit" class="btn btn-primary btn-large"
style="min-width: 100px;"
ng-click="authenticateUser()">
Login
</button>
</div>
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment