Is it possible to embed html page in another one in angular js?
If so, how to do it?
Here in their tutorial, the partial is not embedded in the page but it\'s li
@Wilt is right, but here is a more specific link and a code sample (from https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-view )
In your root template:
And in your app.config function
$stateProvider.state("home", {
views: {
"": {
template: "Some HTML
"
},
"chart": {
templateUrl: "templates/chart.html"
},
"data": {
template: " "
}
}
})