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: 
1. Log in to your WordPress control panel (<http://coolexample.com/wp-admin>, where coolexample.com is your domain name).
2. Click Settings, and then click General.
3. In the WordPress address (URL) and Site address (URL) fields, enter the new domain name or URL you want to use, and then click Save Changes.

see:
<https://www.godaddy.com/help/changing-your-wordpress-domain-name-6495>
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.