I have following controller. Which has a custom html **show-chat** defined using directive.

```
<div id='homeDiv' ng-controller="bloggingHomeController">
  <div id ='chatAreaDiv' style="float:left;width:25%;">
    <h3>Messages</h3>
    <show-chat></show-chat>
  </div> 
</div>

```

Following is the directive definition of **show-chat**

```
 appDirective.directive('showChat', function() {
        return {        
            restrict: 'E', // E = Element, A = Attribute, C = Class, M = Comment
            // template: '',
            templateUrl: 'partials/chat.html',
            replace: true
        };
    });

```

chat.html is as follows.

```
<div id='chatHtmlDiv' ng-controller='chatController'>
  <ul>
    <li ng-repeat="aChat in allChats" style="list-style-type: none;">
      <b style="color:red;">{{aChat.message}}</b><br/>
      <cite>by {{aChat.createdBy}} on {{aChat.createdDate | date}}</cite>
    </li>
  </ul>
  <textarea id='chatBox' ng-model='chatMessage'></textarea>
  <br/>
  <button id='postChatButton' ng-click = postChatMessage()>Post Message</button>    
</div>

```

Inside bloggingHomeController i have the following.

```
app.controller('chatController', function($scope, $route, chatService) {
    chatService.getChat()
    .then(function(data) {
        $scope.allChats = data;
    }, function(error) {

    });
    $scope.postChatMessage = function() {
        var c = JSON.parse(JSON.stringify($scope.chatMessage));
        chatService.save(c)
        .then(function(data) {
            $scope.chatMessage = '';
        }, function(error) {

        })

        chatService.getChat()
        .then(function(data) {
            $scope.allChats = data;
            $route.reload();
        }, function(error) {

        });
    };
});

```

When postChatMessage() is being called from chat.html a request is made to the database to get the chat messages .
The issue is $scope.allChats is getting updated with the new value but 
show-chat doesnot show the updated data.
May i know is this not getting updated ?
Thanks in advance.