angular-bootstrap-simple-chat icon indicating copy to clipboard operation
angular-bootstrap-simple-chat copied to clipboard

How can I change the chat title?

Open tiagoovieira opened this issue 10 years ago • 1 comments

The title of the chat is provided via a GET request, how can I update it?

tiagoovieira avatar Oct 15 '15 23:10 tiagoovieira

Hi! I think something like this should work (not tried)

assign it to a variable in your controller like this:

function Controller($scope, $http) {
  $scope.chatTitle = ' ';
  $http.get('/api/config')
    .then(function(data) {
      $scope.chatTitle = data.title;
    }):
}

and set the variable to the title in the directive

<irontec-simple-chat  title="{{chatTitle}}""></irontec-simple-chat>

aitorllj93 avatar Nov 02 '15 16:11 aitorllj93