Blame view

app/views/login/login.controller.js 415 Bytes
5c6477d3d   Rishav   Admin Acufuel set...
1
2
3
4
  'use strict';
  
   //Load controller
    angular.module('inspinia')
22d319238   Rishav   login next page
5
  	.controller('LoginController', function ($scope, $state, LoginService) {
5c6477d3d   Rishav   Admin Acufuel set...
6
7
8
9
        
        $scope.user = {};
        $scope.userData = function(){
            
22d319238   Rishav   login next page
10
11
            // LoginService.loginUser($scope.user).then(function(result) {
            //   console.log(result)
5c6477d3d   Rishav   Admin Acufuel set...
12
                
22d319238   Rishav   login next page
13
14
            // })
            $state.go('index.dashboard');
5c6477d3d   Rishav   Admin Acufuel set...
15
16
17
        }
        
    });