Skip to content

Commit

Permalink
Merge pull request emberjs#2182 from dopin/patch-4
Browse files Browse the repository at this point in the history
Fix typos in Tutorial - Building a Complex Component
  • Loading branch information
Jen Weber authored Jan 21, 2018
2 parents 3dba3cc + 6f7b828 commit 181ebb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tutorial/autocomplete-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ In the `filterByCity` function in the rentals controller above,
we've added a new property called `query` to the filter results instead of just returning an array of rentals as before.

```app/components/list-filter.js{-19,-9,+10,+11,+12,+20,+21,+22,+23,+24}
import Ember from 'ember';
import Component from '@ember/component';
export default Component.extend({
classNames: ['list-filter'],
value: '',
init() {
this._super(...arguments);
this.get("filter")("").then((results) => this.set("results", results))
this.get('filter')('').then((results) => this.set('results', results));
this.get('filter')('').then((allResults) => {
this.set('results', allResults.results);
});
Expand Down

0 comments on commit 181ebb2

Please sign in to comment.