I have one state in my ui-router config:
state("objects",
url: "/:type/"
)
And I need render different templates based on :type params. For example, when user trying access /buy, I need render template /views/objects/buy.html, when /rent — /views/objects/rent.html.
What can help me?