more fixes
This commit is contained in:
parent
8b730d23b3
commit
f9f51a93b5
|
@ -34,7 +34,7 @@ meta(itemprop="description" content="#{description}")
|
||||||
meta(itemprop="image" content="https://angular.io/resources/images/logos/standard/shield-large.png")
|
meta(itemprop="image" content="https://angular.io/resources/images/logos/standard/shield-large.png")
|
||||||
|
|
||||||
link(rel="icon" type="image/x-icon" href="/resources/images/icons/favicon.ico")
|
link(rel="icon" type="image/x-icon" href="/resources/images/icons/favicon.ico")
|
||||||
link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.7.1/angular-material.min.css")
|
link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.css")
|
||||||
link(href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,400italic,700' rel='stylesheet' type='text/css')
|
link(href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,400italic,700' rel='stylesheet' type='text/css')
|
||||||
link(rel="stylesheet" href="/resources/css/vendor/icomoon/style.css")
|
link(rel="stylesheet" href="/resources/css/vendor/icomoon/style.css")
|
||||||
link(rel="stylesheet" href="/resources/css/main.css")
|
link(rel="stylesheet" href="/resources/css/main.css")
|
||||||
|
|
|
@ -9,7 +9,7 @@ script(src="/resources/js/vendor/jquery.js")
|
||||||
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js")
|
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js")
|
||||||
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js")
|
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js")
|
||||||
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js")
|
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js")
|
||||||
script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.2/angular-material.min.js")
|
script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.js")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
.l-main-section
|
||||||
|
|
||||||
|
.callout.is-helpful
|
||||||
|
header Developer Preview
|
||||||
|
p.
|
||||||
|
The Angular 2.0 API is currently in active development and not production ready.
|
||||||
|
This page will showcase a preview of proposed methods to help further the discussion
|
||||||
|
in the development community. If you're building a production app today, please
|
||||||
|
<a href="https://docs.angularjs.org/api">use Angular 1.X</a>.
|
||||||
|
|
||||||
|
number = 1;
|
||||||
|
ul
|
||||||
|
for page, slug in public.docs[current.path[1]][current.path[2]].api._data
|
||||||
|
url = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + slug + ".html"
|
||||||
|
num = number++
|
||||||
|
|
||||||
|
li.c8
|
||||||
|
!= partial("../../../_includes/_hover-card", { number: num, name: page.title, url: url })
|
|
@ -90,39 +90,44 @@
|
||||||
<code><my-app></code> element in <code>index.html</code>, and call Angular's <code>bootstrap()</code> to kick
|
<code><my-app></code> element in <code>index.html</code>, and call Angular's <code>bootstrap()</code> to kick
|
||||||
it all off like this:
|
it all off like this:
|
||||||
|
|
||||||
pre.prettyprint.lang-javascript
|
.code-box
|
||||||
code.
|
nav.code-box-nav
|
||||||
//ES5
|
a(href="#")
|
||||||
function AppComponent() {}
|
|
||||||
|
|
||||||
AppComponent.annotations = [
|
pre.prettyprint.lang-javascript
|
||||||
new angular.Component({
|
code.
|
||||||
selector: 'my-app'
|
//ES5
|
||||||
}),
|
function AppComponent() {}
|
||||||
new angular.View({
|
|
||||||
template: '<h1>My first Angular 2 App</h1>'
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
AppComponent.annotations = [
|
||||||
angular.bootstrap(AppComponent);
|
new angular.Component({
|
||||||
});
|
selector: 'my-app'
|
||||||
|
}),
|
||||||
|
new angular.View({
|
||||||
|
template: '<h1>My first Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
pre.prettyprint.lang-typescript
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
code.
|
angular.bootstrap(AppComponent);
|
||||||
//TypeScript
|
});
|
||||||
import {Component, View, bootstrap} from 'angular2/angular2';
|
|
||||||
|
|
||||||
@Component({
|
pre.prettyprint.lang-typescript
|
||||||
selector: 'my-app'
|
code.
|
||||||
})
|
//TypeScript
|
||||||
@View({
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
template: '<h1>My first Angular 2 App</h1>'
|
|
||||||
})
|
@Component({
|
||||||
class AppComponent {
|
selector: 'my-app'
|
||||||
}
|
})
|
||||||
|
@View({
|
||||||
|
template: '<h1>My first Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
class AppComponent {
|
||||||
|
}
|
||||||
|
|
||||||
|
bootstrap(AppComponent);
|
||||||
|
|
||||||
bootstrap(AppComponent);
|
|
||||||
|
|
||||||
.l-main-section
|
.l-main-section
|
||||||
h2#section-run-it Run it!
|
h2#section-run-it Run it!
|
||||||
|
|
|
@ -19,7 +19,8 @@ code {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-family: $mono-font;
|
font-family: $mono-font;
|
||||||
color: $metal;
|
color: $metal;
|
||||||
padding: 0px 2px;
|
padding: 0px 4px;
|
||||||
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-center {
|
.text-center {
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
@import 'module/buttons';
|
@import 'module/buttons';
|
||||||
@import 'module/table';
|
@import 'module/table';
|
||||||
@import 'module/code';
|
@import 'module/code';
|
||||||
|
@import 'module/code-box';
|
||||||
@import 'module/sticker';
|
@import 'module/sticker';
|
||||||
@import 'module/bio-card';
|
@import 'module/bio-card';
|
||||||
@import 'module/overlay';
|
@import 'module/overlay';
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
.code-box {
|
||||||
|
header {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
a {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -56,6 +56,7 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
color: $metal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -114,6 +114,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
display: block;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-nav-icon {
|
.side-nav-icon {
|
||||||
|
|
|
@ -85,6 +85,17 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Code Formatting
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
$scope.language = 'es5';
|
||||||
|
|
||||||
|
// TOGGLE CODE LANGUAGE
|
||||||
|
$scope.toggleCodeLanguage = function(event) {
|
||||||
|
$scope.showMenu = !$scope.showMenu;
|
||||||
|
};
|
||||||
|
|
||||||
var $codeBoxes = $('pre');
|
var $codeBoxes = $('pre');
|
||||||
if($codeBoxes.length) {
|
if($codeBoxes.length) {
|
||||||
|
|
Loading…
Reference in New Issue