JSFiddle - React, Tailwind, and code Playground

by Wener

HTML

<body ng-app="tester">
<input ng-model="value" /><br />

<div ng-view></div>

<div ng-controller="Test" >
	<span ng-repeat="url in urls">
		<a href="{{url || ''}}">linke('{{url}}')<i ng-if="!url">the url is false.still reload</i></a> <br />
	</span>
	<a href="">static no href. will not reload</a><br>
	<i>Random {{random()}}.</i>
</div>
</body>

<script src="http://docs.angularjs.org/angular.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular-route/master/angular-route.js"></script>

<script>
	var tester = angular.module('tester', [
		'ngRoute','testerCtrl'

	]);

	tester.config(['$routeProvider',
		function($routeProvider) {
			$routeProvider.
					when('/other', {
						templateUrl: 'other.html'
					}).otherwise({
						redirectTo: '/other'
					});
		}]);

	var testerCtrl = angular.module('testerCtrl', []);

	testerCtrl.controller('Test', ['$scope',
		function($scope) {
			$scope.urls = ['',null,"#/tester",'#/ok'];
			$scope.random = function(){return Math.random();}
		}]);
</script>