In my code, I am facing an issue where ng-repeat is not functioning as expected.
Here is the content of my App.js file:
var app = angular.module('angularjs-starter', ['jsonService', 'ngRoute', 'ngResource'])
app.controller('MainCtrl', function($scope, JsonService) {
// Code here
});
app.config(['$locationProvider', function($locationProvider) {
$locationProvider.hashPrefix('')
}]);
app.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
// Code here
}])
In my application, I have two views - a search view for searching an artist's name and a detail view for displaying detailed information. While I am able to successfully parse and display data in the search view, I am encountering difficulties in displaying the data in the details view.
Here is the content of my Search.html file:
HTML code for the search view goes here
Details
HTML code for the details view goes here
App.js has been edited with additional code as follows:
Edited content of App.js file with additional code
Service.js
angular module and factory code for service goes here
routes.js using node js
Code for routing with node js goes here
Edit: During testing, I noticed that $scope.children is returning a value while $scope.details is showing as undefined. I need to troubleshoot this issue further.