Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I change the chat title? #11

Open
tiagoovieira opened this issue Oct 15, 2015 · 1 comment
Open

How can I change the chat title? #11

tiagoovieira opened this issue Oct 15, 2015 · 1 comment

Comments

@tiagoovieira
Copy link

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

@aitorllj93
Copy link
Contributor

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants