Skip to content

Instantly share code, notes, and snippets.

@allthesignals
Created July 3, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthesignals/63b5e3fd8b1a5c76113b562795d8f0af to your computer and use it in GitHub Desktop.
Save allthesignals/63b5e3fd8b1a5c76113b562795d8f0af to your computer and use it in GitHub Desktop.
Test2304923042308585
import Ember from 'ember';
export default Ember.Controller.extend({
result:[],
actions: {
autocompleteSearch: function() {
this.get('ajax').request('https://search.mapzen.com/v1/autocomplete', {
method: 'GET',
dataType: "json",
data: {
"text": "Boston",
"api_key": "search-5f1bwRf"
}
});
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.10.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.3.2",
"ember-data": "2.3.3",
"ember-template-compiler": "2.3.2"
},
"addons": {
"ember-ajax": "2.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment