Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div ng-controller="loginCtrl">
- username<input ng-model="username">
- password<input ng-model="password">
- <button ng-click="submit()">Send</button>
- </div>
- angular.module('app',[]).controller('loginCtrl', function($scioe) {
- $scope.submit = function() {
- globalStore.dispatch({
- action: 'LOGIN',
- payload: {
- username: $scope.username,
- password: $scope.password
- }
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement