javascript - How to re-render views using Angular JS -


i want re-render views present on page.i have header, footer , body view. in header view have dropdown in user can select language preference. on clicking on language prefrence view should re-render. possible in angular?

in backbonejs call render function again on particular event. there same kind of functionality provided angularjs?

thanks in advance

header template (language prefrence dropdown code)

<li class="dropdown">     <a id="dlabel" role="button" data-toggle="dropdown" data-target="#">         language preferences<b class="caret"></b>     </a>     <ul class="dropdown-menu dropdown-manual">          <li id="english" ng-click="englishconversion()">english</li>         <li id="french"  ng-click="frenchconversion()" >french</li>      </ul> </li> 

is there inbuilt function can call in englishconversion , frenchconversion re-render view/views?

have looked @ angular-gettext libary ,

or can $compile html using angular again. can this,

var content=angular.element('#translatedcontent'); var scope=content.scope(); $compile(content.contents())(scope)); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -