/**
* 使用locationProvider 的时候 在页面需要加入<base href="/"/>
* */
var customerConformApp = angular.module('customerConformApp', []);
customerConformApp.config([ '$locationProvider', function($locationProvider) {
$locationProvider.html5Mode(true);
} ]);
customerConformApp.controller('CustomerConformAppCtrl', [ '$scope',
'$location', function($scope, $location) {
if ($location.search().keyword) {
$scope.keyword = $location.search().keyword;
}
}]);
* 使用locationProvider 的时候 在页面需要加入<base href="/"/>
* */
var customerConformApp = angular.module('customerConformApp', []);
customerConformApp.config([ '$locationProvider', function($locationProvider) {
$locationProvider.html5Mode(true);
} ]);
customerConformApp.controller('CustomerConformAppCtrl', [ '$scope',
'$location', function($scope, $location) {
if ($location.search().keyword) {
$scope.keyword = $location.search().keyword;
}
}]);