Hello! I have this link:
<ul class="nav child_menu">
<li><a href="graficos.html">Gráficos</a></li>
</ul>
Clicking the link should display grafico.html
through ng-include
:
<div ng-include="'graficos.html'"></div>
graficos.html:
<div ng-controller="graficoCtrl">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Line graph<small>Sessions</small></h2>
<ul class="nav navbar-right panel_toolbox">
//... mais código ...
As seen above, there is a controller
(graphCtrl) and it loads a graphic in the canvas tag in the grafico.html
file.
app.controller('graficoCtrl', function($scope){
Chart.defaults.global.legend = {
enabled: false
};
// mais código....
What I really want to do is to maintain interactivity on a single page, that is, by clicking on a link on the same page, a reload occurs on a particular < strong> div . A Single Page Application.