Looking into how to extract a specific value from the URL within Angular for parsing purposes.
For example:
http://localhost:1337/doc-home/#/tips/5?paginatePage=1
The goal is to retrieve the value "5".
HTML snippet:
<a href="#/tips/comments/{{ tip.id }}?groupid={{ ????? }}" class="btn-yellow">Add / View Comments</a>
In module.js:
.when('/tips/comments/:group?id', {
templateUrl: 'partials/comments.html'
Inside controller.js:
.controller('TipCommentsCtrl',
function ($http, $scope, $routeParams, Categories, Tip, $location, error, $sce) {
UPDATE
Making progress with the help of feedback received so far. Another related question has been posted to provide more context on the issue.
Angular routeParams not working URL is changing