Simulator blank screen - TemplateUrl not loading


#1

Hi Guys,

I’m just messing around here with ionic converting a native app to it, when I use ionic serve this works perfectly in the browser. Unfortunately when I build and when I attach safari for debug it doesn’t seem to want to load the templates at all.

app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {  
  $stateProvider
    .state('styles', {
      url: '/styles', 
      templateUrl: 'styles.html',
      controller: 'BeerStylesController'
    })
    .state('beers', {
      url: '/beers/:id', 
      templateUrl: 'beers.html',
      controller: 'BeersController'
    })
    .state('breweries', {
      url: '/breweries/:id', 
      templateUrl: 'brewery.html',
      controller: 'BreweriesController'
    })

    $urlRouterProvider.otherwise('styles');
    $locationProvider.html5Mode(true);
});

#2

fixed :stuck_out_tongue: