-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Login form using Angular Material - #202
- Loading branch information
1 parent
bf549a8
commit 42265d3
Showing
7 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
angular/app/components/login-form/login-form.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div> | ||
<md-input-container class="LoginForm-inputContainer"> | ||
<label>Email</label> | ||
<input type="email" ng-model="vm.email"> | ||
</md-input-container> | ||
</div> | ||
|
||
<div> | ||
<md-input-container class="LoginForm-inputContainer"> | ||
<label>Password</label> | ||
<input type="password" ng-model="vm.password"> | ||
</md-input-container> | ||
</div> | ||
|
||
<md-button type="submit" class="LoginForm-submit md-primary md-raised">Login</md-button> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class LoginFormController{ | ||
constructor(){ | ||
'ngInject'; | ||
|
||
this.email = ''; | ||
this.password = ''; | ||
} | ||
} | ||
|
||
export const LoginFormComponent = { | ||
templateUrl: './views/app/components/login-form/login-form.component.html', | ||
controller: LoginFormController, | ||
controllerAs: 'vm', | ||
bindings: {} | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.LoginForm-inputContainer{ | ||
margin-top: 10px; | ||
margin-bottom: 0px; | ||
margin-left: 8px; | ||
width: 80%; | ||
} | ||
|
||
.LoginForm-submit{ | ||
margin-bottom: 40px; | ||
} |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<md-content class="Page-container"> | ||
<div flex="80" flex-offset="10"> | ||
<h1>Login</h1> | ||
|
||
<login-form></login-form> | ||
</div> | ||
</md-content> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
//import {YourComponent} from './app/components/your/your.component'; | ||
import {LoginFormComponent} from './app/components/login-form/login-form.component'; | ||
|
||
//angular.module('app.components').component('yourComponent', YourComponent); | ||
angular.module('app.components').component('loginForm', LoginFormComponent); |