akveo / akveo/blur-admin

Unable to load a view that doesn't exist in the sidemenu

Open
#41 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.3k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have a module called courses which is loading ok. When loaded it shows list.html which is a list of the courses.
Each course can then be edited by going to the courses.edit state but because this isn't loaded into the menu I can't do it.

I can see the URL changing to courses/edit/mycourseID but the content in the ui-view does not change.

Can you point me in the right direction to get around this?

(function () {
'use strict';

angular.module('BlurAdmin.pages.courses', [])
.config(routeConfig);

/*\* @ngInject */
function routeConfig($stateProvider, $urlRouterProvider) {
$stateProvider

```
.state('courses', {
url: '/courses',
title: 'Courses',
templateUrl: 'app/pages/courses/list.html',
controller: 'CoursesController',
controllerAs: 'vm',
sidebarMeta: {
icon: 'fa fa-trophy',
order: 120,
},
})
.state('courses.edit', {
url: '/edit/:ID',
templateUrl: 'app/pages/courses/edit/edit.html',
controller: 'CourseEditController',
controllerAs: 'vm'
});
}
```

})();

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.