AngularJS 单页应用程序中的可切换选项卡?

Toggable tabs in an AngularJS single page application?

我有一个 MEAN.JS 申请 运行。它是一个使用 AngularJS' 标签路由的单页应用程序。

我想实现 Bootstrap's toggable tabs, but for them to work they use hashtags to switch tabs (e.g. www.example.com/#tab1 and www.example.com/#tab2). All fine and dandy, except for that I cannot use hashtags that way due to AngularJS' 路由。在 AngularJS 单页应用程序环境中使可切换选项卡工作的任何解决方法?

在此先感谢,我会接受帮助我解决这个问题的答案。

您正在使用 AngularJS 路由这一事实不应阻止您使用 Bootstrap 选项卡的 AngularJS 变体。

见下文link。

http://angular-ui.github.io/bootstrap/#/tabs