Sha256: e59176c0d5b4d79c284b105a48b3a6ba779ee8127c63e472cc8456abf4e019c8

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

import Ember from 'ember';
const { computed } = Ember;
import layout from '../../templates/components/bsy-nav/link';

export default Ember.Component.extend({
  layout,
  tagName: 'a',
  classNames: 'nav-link',
  classNameBindings: ["activeClassName"],
  active: false,

  activeClassName: computed('active', function() {
    if (this.get('active') === true) {
      return "active";
    } else {
      return "";
    }
  })
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap-bookingsync-sass-1.0.5 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.4 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.3 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.2 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.1 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.0 addon/components/bsy-nav/link.js
bootstrap-bookingsync-sass-1.0.0.beta12 addon/components/bsy-nav/link.js