Initial commit

This commit is contained in:
jar3b
2016-04-25 18:31:43 +03:00
parent 53d15517f7
commit 9718584ced
28 changed files with 262 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
import Ember from 'ember';
export default Ember.LinkComponent.extend({
tagName: 'a',
classNames: ['item']
});

View File

@@ -0,0 +1,19 @@
import Ember from 'ember';
export default Ember.Component.extend({
placeholder: "Ввведите название населенного пункта",
searchText: "",
store: Ember.inject.service('store'),
actions: {
search(param) {
if (param !== '') {
this.get('store').query('find-result', {text: param}).then((result) => {
this.set('model', result);
});
} else {
this.set('model', null);
}
}
}
});