I am using hshbang
this is the user area config file  as described below :
'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', ['ngRoute','angular-loading-bar']).
config(['$locationProvider', '$routeProvider', function($locationProvider, 
$routeProvider) {
$locationProvider.hashPrefix('!');
$locationProvider.html5Mode({
 enabled: false,
 requireBase: true,
 rewriteLinks: true
})

  $routeProvider.when('/',{
   templateUrl:'home/home.html'


  }).when('/appletsoftware/home',{
templateUrl:'home/home.html'


  }).when('/appletsoftware/allcourses',{
   templateUrl:'allcourses/allcourses.html'


  }).when('/appletsoftware/staff',{
   templateUrl:'staff/staff.html'


  }).when('/appletsoftware/news',{

    templateUrl:'news/news.html'
 }).when('/appletsoftware/about',{

    templateUrl:'about/about'

  }).when('/appletsoftware/jobs',{

    templateUrl:'jobs/jobs.html'
 }).when('/appletsoftware/events',{


    templateUrl:'events/events.html'
 }).when('/appletsoftware/register',{


    templateUrl:'register/register.html'
 }).when('/appletsoftware/login',{

    templateUrl:'login/login.html'
 }).when('/appletsoftware/coursedetails',{

    templateUrl:'coursedetails/coursedetails.html'
 }).when('/appletsoftware/applyforcourse',{

    templateUrl:'applyforcourse/applyforcourse.html'
 })
 $routeProvider.otherwise({redirectTo: '/'});
}]);




this is the code of config for admin area :

angular.module('DashboardApp', ['ngRoute','angular-loading-bar']).
config(['$locationProvider', '$routeProvider', function($locationProvider, 
$routeProvider) {
   $locationProvider.hashPrefix('!');
   $locationProvider.html5Mode({
    enabled: false,
    requireBase: true,
    rewriteLinks: true
  })

   $routeProvider.when('/',{
   templateUrl:'dashboardindex/dashboardindex.html'
 }).when('/appletsoftware/dashboardindex',{
   templateUrl:'dashboardindex/dashboardindex.html'
 })
}]);

the problem is  how could i go form userare to the admin area 
(dashboard)when i click this link 
 <li>
             <a href="#!/appletsoftware/dashboardindex">Dashboard</a>
           </li>

my problem is that the base ref is the user area 
 any help please ?
to navigate from user area to dashboard ?


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to