'use strict';

var angular = require('angular');
require('../modules');
require('../services/SetUrlService');

var module = angular.module('initializeset');

/**
* 省份选择控制器
*/
module.controller('SetUrlLoginCtrl', function($scope, SetUrlService) {
  $scope.config = {
    canConfirm: true
  };

  // 点击关闭
  $scope.confirm = function() { 
    return SetUrlService.saveConfig($scope.config.selectItem).then(SetUrlService.goNext);
  };
});
