«

angular获取url参数

emer 发布于 2019-3-1 17:25   2528 次阅读     


var app = angular.module('myApp', []);

app.config(['$locationProvider', function($locationProvider) {

  $locationProvider.html5Mode(true);

}]);

app.controller('dataCtrl', function($scope, $http,$compile,$location) {

$scope.newId=$location.search().jdid;