Angular ui router use different template based on environment

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Angular ui router use different template based on environment



I want to know if there is any way I can use different footer depending on the host.


$stateProvider.state('home', {
url : '/page',
views : {
"main" : {
templateUrl : '/buy/product.html'
},
"footer" : {
template : '<footer show-list="false"></footer>'
}
}
});



So let say if my current hostname is "test.domain.com" for example, I would like to set the show-list to true


template : '<footer show-list="true"></footer>'



Any suggestion on how I can do that?





Had you tried using environment variables?
– Християн Христов
22 mins ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

p3Z4uisWVmmQfQJDVrQKZBhuGHQiLslk0Ka
Ban4Wf gvnKeFHy3SXAcqNhk9WNWHKNGXvPsxTf,Q D,liOjdmcvQpexXnHJcClb4C On

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results