Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Ember bootstrap toasts

$
0
0

I try to get the toasts working from bootstrap.

I installed ember-jquery and add this to my template:

<div class="toast">
  <div class="toast-header">
    Toast Header
  </div>
  <div class="toast-body">
    Some text inside the toast body
  </div>
</div>

In my controller I have the following code:

@action
  async sendAttest(subscription) {
    jQuery('.toast').toast('show');

  }

I get the following error:

Uncaught (in promise) TypeError: (0 , _jquery.default)(…).toast is not a function

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles