Question: So I've been looking at this for way too long. Really hope someone could help me out :) I'm just trying to create a module that creates a directive and controller for my site header in AngularJS. I don't get any error and the log in my code won't show up. This is the code related to the header module:

**header/header.js**

```
 'use strict';
angular.module('myApp.header', [])

.directive("headerBar", [function(){
  return {
    restric: "E",
    templateUrl: "header/header.html",
    controller: 'HeaderCtrl'
  };
}])

.controller('HeaderCtrl', ['$log', function($log) {
  $log.log('test header controller');
}]);

```

**app.js**

```
angular.module('myApp', [
  'ngRoute',
  'myApp.header'
]).
config(['$routeProvider', function($routeProvider) {
  $routeProvider.otherwise({redirectTo: '/'});
}]);

```

**index.html**

```
<script src="header/header.js"></script>

<header-bar></header-bar>

```

Answer: 
Fastest and best way to change the URL is to go to the *wp-config.php* File and place this code:

```php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

```
If you're using WPbakery (or not) then you should use this:
[GoLive](https://nl.wordpress.org/plugins/go-live-update-urls/)

I can confirm that this is working perfectly!