Johan Angelstam | Peter Keogh | Fredrik Salin
{{enquiry.brand_name}}
{{enquiry.model_name}}
{{enquiry.color}}
{{getAgeFromYear(enquiry.from_year)}} Years Old
{{enquiry.milage}}
{{enquiry.target_price}}
carApp.config(function($routeProvider) {
$routeProvider
.when('/home', {
templateUrl: 'views/home.html',
controller: 'HomeCtrl'
})
.when('/enquiry', {
templateUrl: 'views/enquiry.html',
controller: 'EnquiryCtrl'
})
.when('/login', {
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
})
.when('/sign-up', {
templateUrl: 'views/sign-up.html',
controller: 'SignUpCtrl'
})
.when('/view-bids', {
templateUrl: 'views/view-bids.html',
controller: 'ViewBidsCtrl'
})
.otherwise({
redirectTo:'/home'
});
});
Returns a list of all enquiries.
{
car_id: int (required),
target_price: int,
color: string,
milage: int,
from_year: int,
}