Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Dynamic template from url

$
0
0

@ashraftushar wrote:

.state('tab.home-detail', {
url: '/home/:homeId',
views: {
  'tab-home': {
    templateUrl: 'templates/home-detail**:homeId**.html',
    controller: 'HomeDetailCtrl'
  }
}

})

I want to make tymplateUrl dynamic. So that when :homeId=01 then templateUrl will be 'template/home-detail01.html' when :homeId is 05 then templateUrl will be 'template/home-detail05.html'

How can I do that. In the above code I tried, but did not get result. Plz help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>