(function() {
  function config($stateProvider, $locationProvide) {
   
    $locationProvider
      .html5Mode({
      enabled: true,
      requireBase: false
    });
    
    $stateProvider
    .state('main', {
      url: '/',
      controller: 'MainView as main',
      templateUrl: '/templates/main.html'
    });
    
  }
  angular
  .module('blocChat', ['ui.router', 'firebase'])
  .config(config);
})
(function() {
  function config($stateProvider, $locationProvider) {
   
    $locationProvider
      .html5Mode({
      enabled: true,
      requireBase: false
    });
    
    $stateProvider
    .state('main', {
      url: '/',
      controller: 'MainView as main',
      templateUrl: '/templates/main.html'
    });
    
  }
  angular
  .module('blocChat', ['ui.router', 'firebase'])
  .config(config);
})
update app.js - fix typo