15 lines
465 B
CoffeeScript
15 lines
465 B
CoffeeScript
#App.SideMenuItemView = Ember.View.extend
|
|
#classNames: 'menu-list-item'
|
|
#classNameBindings: ['active']
|
|
#click: ->
|
|
#if @route_param
|
|
#@get('controller').transitionToRoute(@route, @route_param)
|
|
#else
|
|
#@get('controller').transitionToRoute(@route)
|
|
#active: (->
|
|
#if @get('controller.currentPath') == @route then 'active' else ''
|
|
#).property('controller.currentPath')
|
|
#init: ->
|
|
#@templateName = "side_menu/#{@route}"
|
|
#@_super()
|