I have the following list of files:
index.html
car.html
truck.html
mainCtrl.js
carCtrl.js
truckCtrl.js
I aim to create the following routes:
#/search (template: index.html, controller: mainCtrl.js)
#/search/car (template: car.html, controller: carCtrl.js)
#/search/truck (template: truck.html, controller: truckCtrl.js)
The index.html page contains two links. One link should redirect to #/search/car
and the other to #/search/truck
The car.html & truck.html
should load in a nested view
I am seeking assistance in completing this task successfully.