banner for dart and image fix

This commit is contained in:
Alex Wolfe 2015-04-23 08:58:53 -07:00
parent f3eb6b8eaa
commit 58e607e873
6 changed files with 14 additions and 17 deletions

View File

@ -1,4 +1,6 @@
content = banner ? banner : intro
.banner
p.text-body !{content}
if banner
.banner
p.text-body !{banner}
else if intro
.banner
p.text-body !{intro}

View File

@ -1,5 +1,6 @@
{
"_listtype": "ordered",
"setup": {
"title": "Getting Started"
},
@ -9,8 +10,10 @@
},
"displaying-data": {
"title": "Displaying Data"
"title": "Displaying Data",
"intro": "Displaying data is job number one for any good application. In Angular, you bind data to elements in HTML templates, and Angular automatically updates the UI as data changes."
},
"user-input": {
"title": "User Input"
},

View File

@ -7,9 +7,7 @@ html(lang="en" ng-app="angularIOApp")
!= partial("../../../../_includes/_main-nav")
!= partial("../../../../_includes/_docs-nav")
!= partial("../../../../_includes/_hero")
if banner
!= partial("../../../../_includes/_banner")
!= partial("../../../../_includes/_banner")
article.l-content-small.grid-fluid.docs-content(ng-non-bindable)
!= yield

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -1,14 +1,9 @@
.l-main-section
p.
Displaying data is job number one for any good application.
In Angular, you bind data to elements in HTML
templates, and Angular automatically updates the UI as data changes.
p.
Let's walk through how to display a property and a list of properties,
and then to conditionally show content
based on state.
p.
The final UI looks like this:
based on state. The final UI looks like this:
figure.image-display
img(src='displaying-data-example1.png')

View File

@ -7,8 +7,7 @@ html(lang="en" ng-app="angularIOApp")
!= partial("../../../../_includes/_main-nav")
!= partial("../../../../_includes/_docs-nav")
!= partial("../../../../_includes/_hero")
if intro || banner
!= partial("../../../../_includes/_banner")
!= partial("../../../../_includes/_banner")
article.l-content-small.grid-fluid.docs-content(ng-non-bindable)
!= yield