Sa E Chowdary Sa E Chowdary - 1 year ago 145
AngularJS Question

how to refresh or reload a particular div on some function using angular js?

<div id="divId_graph" ></div>
<div class="graph" id="graph" style="margin-top:-15px"></div>


$('#graph').svg({ onLoad:drawIntro});

is a function which calculate values.It's not calling when I recall the function with in same page by change some input values.

Answer Source

            type: "GET",

            url: "/templates/ch_div_content.html?loadPortion=graph",

            data: "partnerSelect="+$rootScope.partnerSelect,

            success: function(msg){

                if (box1) box1.remove();




the the ch-div-content.html is the part i want to reload and it is as  follows
<?php if ($loadPortion == 'graph'){ ?>                           

<script language="javascript">
if($( ".graph" )[1]!==undefined){
     $( ".graph" )[1].remove();

 <div class="graph" id="graph" style="margin-top:25px">

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download