Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ctrl.init = function () {
- return $ctrl._service.getCarManufacturers().then(res => $ctrl.makers = res, err => console.log(err));
- };
- $ctrl.getModels = function (makerId) {
- return $ctrl._service.getCarModels(makerId).then(res => $ctrl.models = res, err => console.log(err));
- };
- $ctrl.getYears = function (makerId, modelId) {
- return $ctrl._service.getCarYears(makerId, modelId).then(res => $ctrl.years = res, err => console.log(err));
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement