UNPKG

@nuskin/ns-checkout

Version:

Ecomm3 Checkout module

19 lines (16 loc) 650 B
import app from './harnessModule.js'; import {UserService, AccountManager} from 'fa/nsAccount'; import {RunConfigService} from 'fa/nsUtil'; app.controller('harnessCtrl', ['$scope', '$rootScope','$location', function($scope, $rootScope, $location) { $scope.runConfig = RunConfigService.getRunConfig(); $scope.goToCart = function() { RunConfigService.setRunConfig($scope.runConfig); $location.path('/cart'); }; $scope.authenticate = function() { AccountManager.authenticate($scope.login.userName, $scope.login.password); }; function loginSuccessCallback(){ console.log('logged in'); } }]);