As I am new to angularjs
, I am using ng-if
in page1.html
, and it is working fine , means if i click checkbox
it is showing the div
element and if i uncheck the check box it is hiding.
My question is , if i click check box
the div
element associated with ng-if
has to be show in page1.html
and as well as in page2.html.
Can any one help me , in angular way.