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