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: 
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!
Search replace db is a good tool to replace all old url with new urls. You can download latest file from

[seach replace db](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/)

Perform following steps

1. put the file on wp directory
2. open wp config file and change database credentials
3. open url in browser (<http://localhost/wordpress/downloadedfile.php>)
4. read instruction and go to next step till it complete.

This tool help you to upload or migrate database from localhost to server or server to server.