Skip to content

Instantly share code, notes, and snippets.

@shawn-simon
Forked from lanterndev/index.html
Last active August 29, 2015 13:56
Show Gist options
  • Save shawn-simon/9084945 to your computer and use it in GitHub Desktop.
Save shawn-simon/9084945 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
<script>
angular.module('broken', [])
.controller('MainCtrl', function ($scope, $location) { });
</script>
</head>
<body>
<div ng-app="broken">
<h1>AngularJS with anchor link - broken by injecting $location</h1>
<div ng-controller="MainCtrl">
<a href="##anchor">broken link to anchor</a>
<div style="margin-top: 800px">
<a id="anchor">anchor</a>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment