Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- didInsertElement() {
- let currentType = this.get('currentType');
- let links = $('.nav-pills li');
- for (let i=0; i<links.length; i++) {
- if (links[i].classList.contains('active')) {
- $(links[i]).removeClass('active');
- }
- }
- },
- actions: {
- selectType(type) {
- this.sendAction('changeType', type);
- }
- }
- });
Add Comment
Please, Sign In to add comment