controller: function($stateParams, $scope){ $scope.id = $stateParams.userId; }
<span ng-bind="id"></span>