Update latest docs content from gdocs

This commit is contained in:
Vojta Jina
2011-06-07 23:13:44 +02:00
committed by Igor Minar
parent e670a812fa
commit e0ee3a0726
8 changed files with 119 additions and 131 deletions

View File

@@ -180,7 +180,7 @@ The unit test now verifies that the default ordering property is set.
We used Jasmine's API to extract the controller construction into a `beforeEach` block, which is
shared by all tests in the nearest `describe` block.
shared by all tests in the parent `describe` block.
To run the unit tests, once again execute the `./scripts/test.sh` script and you should see the
@@ -205,7 +205,7 @@ __`test/e2e/scenarios.js`:__
function() {
// let's narrow the dataset to make the test assertions shorter
// narrow the dataset to make the test assertions shorter
input('query').enter('tablet');

View File

@@ -111,7 +111,7 @@ our model into the view.
__`app/partials/phone-details.html`:__
<pre>
<img ng:src="{{phone.images}}" class="phone"/>
<img ng:src="{{phone.images[0]}}" class="phone"/>
<h1>{{phone.name}}</h1>

View File

@@ -42,7 +42,7 @@ function PhoneDetailCtrl($xhr) {
$xhr('GET', 'phones/' + self.params.phoneId + '.json', function(code, response) {
self.phone = response;
self.mainImageUrl = response.images;
self.mainImageUrl = response.images[0];
});

View File

@@ -102,7 +102,7 @@ function PhoneDetailCtrl(Phone_) {
self.phone = Phone_.get({phoneId: self.params.phoneId}, function(phone) {
self.mainImageUrl = phone.images;
self.mainImageUrl = phone.images[0];
});