错误 - <a href="" does="" not="" work=""

时间:2016-04-16 03:49:27

标签: javascript html angularjs

="" The following code has a line that contains,

<a href="mysite.com">Sign Up</a>

This text we are trying to link does not work when clicked, it is linked, just not clickable. It only doesn't work when we

<ng-include src= 

to include it on our index, it works when going to the page containing just the following. Does anyone know why? I've NEVER had this issue. Thanks so much!

<div class="header" ng-controller="LoginCtrl">
<div class="clearfix">
<div class="welcome pull-right" ng-show="userLoaded">
  <span ng-show="currentUser">Welcome, @{{currentUser.username}}! <a href ng-click="logout()">Logout</a></span>
  <span ng-hide="currentUser"><a href ng-click="showLogin(true)">Log In</a> or 
  HERE---->  <a href="mysite.com">Sign Up</a> </span>

</div>
</div>




<div class="well" ng-show="loginVisible">
<form>
  <label>Username</label>
  <input type="text" ng-model="username" />
  <label>Password</label>
  <input type="password" ng-model="password" />
  <div>

    <button class="btn btn-primary"  ng-click="login()">Log in</button>
    <button class="btn-link" ng-click="showLogin(false)">Cancel</button>
  </div>
</form>

0 个答案:

没有答案