# Simulator blank screen - TemplateUrl not loading

**URL:** <https://forum.ionicframework.com/t/simulator-blank-screen-templateurl-not-loading/9489>\
**Category:** ionic-v1\
**Created:** [September 11, 2014, 11:35am UTC](https://forum.ionicframework.com/t/simulator-blank-screen-templateurl-not-loading/9489 "2014-09-11T11:35:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneP](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@StephaneP](https://forum.ionicframework.com/u/StephaneP)\
**Post date:** [September 11, 2014, 11:35am UTC](https://forum.ionicframework.com/t/simulator-blank-screen-templateurl-not-loading/9489/1 "2014-09-11T11:35:32Z")

</div>

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);
});
```

---

<div class="post-metadata">

**Author:** ![StephaneP](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@StephaneP](https://forum.ionicframework.com/u/StephaneP)\
**Post date:** [September 20, 2014, 4:32am UTC](https://forum.ionicframework.com/t/simulator-blank-screen-templateurl-not-loading/9489/2 "2014-09-20T04:32:49Z")

</div>

fixed 😛
