Bootstrap 3.0 Button in Navbar

后端 未结 5 1415
春和景丽
春和景丽 2021-01-30 07:57

I upgraded bootstrap 3.0 now. And \"a\" tag which looks like btn (by the help of class .btn) is ruined on navbar.

  • 5条回答
    •  遥遥无期
      2021-01-30 08:35

      http://learnangular2.com/events/

      EVENT OBJECT

      To capture the event object, pass $event as a parameter in the event callback from the template:

      
      

      This is an easy way to modify the event, such as calling preventDefault:

      @Component(...)
      class MyComponent {
        clicked(event) {
          event.preventDefault();
        }
      }
      

    提交回复
    热议问题