Angular 内の URL から特定の値を取得したい場合は、このデータを解析する方法を検討しています。
例:
http://localhost:1337/doc-home/#/tips/5?paginatePage=1
「5」を取りたい
HTML:
<a href="#/tips/comments/{{ tip.id }}?groupid={{ ????? }}" class="btn-yellow">Add / View Comments</a>
module.js
.when('/tips/comments/:group?id', {
templateUrl: 'partials/comments.html'
controller.js
.controller('TipCommentsCtrl',
function ($http, $scope, $routeParams, Categories, Tip, $location, error, $sce) {
アップデート
皆さんからの回答のおかげで、私は近づいています。
私の問題が何であるかを説明するのに役立つ別の質問を投稿しました