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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Animations</title> <title>Animations</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<title>User Input</title> <title>User Input</title>
<base href="/">
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css"> <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. and a configuration (`Routes`). We'll configure our routes first.
:marked :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 a#configure-routes
block router-config-intro block router-config-intro
:marked :marked