emberjs - how to mark active menu item using router infrastructure

前端 未结 15 1522
悲&欢浪女
悲&欢浪女 2020-11-27 13:06

I\'m trying to create navigation tabs (taken from Twitter Bootstrap):

15条回答
  •  误落风尘
    2020-11-27 13:49

    Handlebars

    
    

    Javascript

    App.Router.map(function() {
        this.route("about");
    });
    

    It will add active class automatically based on route. Note: It is tested using ember-1.0.0-pre.4.js

提交回复
热议问题