At the moment, the main list HTML is functioning correctly
<div class="post row" ng-repeat="(postId, post) in posts">
<a href="{{ post.url }}">{{ post.title }}</a>
However, when I select an item from the list and navigate to a new page, the details of the item are not displayed on the new page?
By adding the line below that includes $stateParams in the dependencies to the controller JS file, {{ post.title }} appears but the data does not get passed through.
$scope.post = $scope.posts[$stateParams.id]
UPDATE
Here is the states code (syntax omitted for brevity). With some assistance resolving the previous issue, the following codes were provided for the viewing part (the last 2 states).
.state('tab.view', {
url: '/posts/:postId',
views: {
'tab-view': {
templateUrl: 'templates/tab-showpost.html',
controller: 'PostViewCtrl'
How to access the details after clicking on a list item.
app.controller('PostViewCtrl', function ($scope, $stateParams, Post) {
$scope.Post = Post.find($stateParams.postId); //I believe this may be causing an issue