February 2016
Beginner to intermediate
308 pages
5h 46m
English
Query parameters allow you to use the URL for the application state. In these recipes, we'll use query parameters in several different ways to show how it works.
Query parameters are optional key-value pairs. They will appear to the right of ? in a URL.
application controller:
$ ember g controller application
The application controller will be generated in the app/controllers folder.
queryParams for student:/ app/controllers/application.js
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['student'],
student: null
});This will set up the binding between the student query parameter in the URL and the ...
Read now
Unlock full access