Created
August 28, 2012 02:53
-
-
Save freshtonic/3494515 to your computer and use it in GitHub Desktop.
AngularJS stuff I'm just not getting my head around
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| doctype 5 | |
| html(lang="en", ng-app="blaze-control-panel") | |
| head | |
| title 'Blaze Control Panel' | |
| meta(name="viewport", content="width=device-width, initial-scale=1.0") | |
| link(href="css/bootstrap.css", rel="stylesheet", type="text/css") | |
| link(href="css/bootstrap-responsive.css", rel="stylesheet", type="text/css") | |
| link(href="css/app.css", rel="stylesheet", type="text/css") | |
| script(src='js/lib/jquery-1.8.0.min.js') | |
| script(src='js/lib/underscore-1.3.3.min.js') | |
| script(src='js/lib/bootstrap.js') | |
| script(src='js/lib/angular-1.0.1.min.js') | |
| script(src='js/controllers.js') | |
| script(src='js/blaze-control-panel.js') | |
| body(ng-controller='MainController') | |
| .navbar.navbar-inverse.navbar-fixed-top | |
| .navbar-inner | |
| .container | |
| a.btn.btn-navbar(data-toggle="collapse", data-target=".nav-collapse") | |
| span.icon-bar | |
| span.icon-bar | |
| span.icon-bar | |
| a.brand(ng-click='setRoute("/home")') Blaze Control Panel | |
| .nav-collapse.collapse | |
| p.navbar-text.pull-right | |
| a.navbar-link(target='_self', href='/auth/google') Sign in with Google | |
| ul.nav | |
| li.dropdown.active | |
| a(data-toggle="dropdown") Ad Sources | |
| ul.dropdown-menu | |
| li.active | |
| a(ng-click='setRoute("/scenarios")') Scenarios | |
| li.dropdown.active | |
| a(data-toggle="dropdown") Campaigns | |
| ul.dropdown-menu | |
| li.active | |
| a(ng-click='setRoute("/orders")') Orders | |
| .container | |
| div('ng-view') | |
| block content |
Author
Author
And I can confirm that the problem is Bootstrap.
If I put a link outside of the .navbar div, it works perfectly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So
a.navbar-link(href='/auth/google')(without the target='_self') is probably Twitter bootstrap weirdness.Come to think of it, it all might be. I wonder if bootstrap is screwing up Angular's event handling? Seems odd because they seem to like Bootstrap in the Angular videos.