mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-11 10:59:24 +08:00
Update latest docs content from gdocs
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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];
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -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];
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user