export default function(ngModule, options){

  ngModule.run(registerEventHandler);

  /**
   * Redirect to default url when invalid
   * url is requested
   *
   * @param $urlRouterProvider
   */
  function addDefaultRoute($urlRouterProvider){
    $urlRouterProvider
      .otherwise('/');
  }

// Inject dependencies;
  addDefaultRoute.$inject = ['$urlRouterProvider'];

};


export default function(ngModule, options){

  ngModule.config(addDefaultRoute);

  /**
   * Redirect to default url when invalid
   * url is requested
   *
   * @param $urlRouterProvider
   */
  function addDefaultRoute($urlRouterProvider){
    $urlRouterProvider
      .otherwise('/');
  }

// Inject dependencies;
  addDefaultRoute.$inject = ['$urlRouterProvider'];

};


update config