chore: add base href to all examples (#3157)

This commit is contained in:
Jesús Rodríguez 2017-01-28 00:38:34 +01:00 committed by GitHub
parent 75c943f179
commit 1b78cc4f35
47 changed files with 46 additions and 12 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Animations</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -4,6 +4,7 @@
<title>Architecture of Angular</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/">
<link rel="stylesheet" href="styles.css">
<!-- Polyfills for older browsers -->

View File

@ -4,6 +4,7 @@
<head>
<meta charset="UTF-8">
<title>Attribute Directives</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Ahead of time compilation (JIT)</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Ahead of time compilation</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Passing information from parent to child</title>
<base href="/">
<style>
.to-top {margin-top: 8px; display: block;}
</style>

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Hero Form with Validation</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular i18n example</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Component Styles</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Dependency Injection</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Displaying Data</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -4,6 +4,7 @@
<html>
<head>
<title>Hero Form</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- #docregion bootstrap -->

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Hero Form</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Hierarchical Injectors</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Hello World</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Hello World</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Tabs</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Tabs</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Todos</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Todos</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Lifecycle Hooks</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Pipes</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Quickstart</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Content Security</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Http Demo</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Quickstart Seed</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Angular Structural Directives</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Documentation Style</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -3,6 +3,7 @@
<html>
<head>
<title>Documentation Style</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Template Syntax</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Tour of Heroes</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Tour of Heroes</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Tour of Heroes</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Tour of Heroes</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<!DOCTYPE HTML>
<html>
<head>
<base href="/">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="app/ajs-bootstrap/app.module.js"></script>
</head>

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<!DOCTYPE HTML>
<html>
<head>
<base href="/">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="app/ajs-ng-app/app.module.js"></script>
</head>

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Angular Upgrade</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>User Input</title>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

View File

@ -166,18 +166,6 @@ block angular-router
and a configuration (`Routes`). We'll configure our routes first.
:marked
### Add the base tag
Open `index.html` and add `<base href="/">` at the top of the `<head>` section.
+makeExcerpt('index.html', 'base-href')
.callout.is-important
header base href is essential
:marked
See the *base href* section of the [Router](../guide/router.html#base-href)
chapter to learn why this matters.
a#configure-routes
block router-config-intro
:marked