Hi,

I'm stuck with an issue please help me

my code looks like

*template:*

<div  ng-controller = \"appStoreController\">
<ul>
  <li class=\"nav-header pad5\">
     <div  ng-if = \"isEnabled\" ng-click=\"showMenu.showSubMenu =
!showMenu.showSubMenu\">
 <span class=\"fltlft pd0\"><i ng-show=\"!showMenu.showSubMenu\"
class=\"icon-chevron-right\"></i> <i ng-show=\"showMenu.showSubMenu\"
class=\"icon-chevron-down\"></i><font>App Store </font>
               </span></div>
        <ul ng-if=\"showMenu.showSubMenu\" style=\"list-style: none;
height: auto;\" class=\"collapse in\" >
         <li
 ng-class=\"{active:currentBusinessSection==\'app-store-general\'}\"><a
ui-sref=\"businesssettings\"  title=\"General\">General</a></li>
<li
ng-class=\"{active:currentBusinessSection==\'app-store-categories\'}\"><a
ui-sref=\"businesssettings.appstorecategories\"  title=\"App
Categories\">App Categories</a></li>
       </ul>
</div>



*controller:*
app.controller("appStoreController", function($scope) {
$scope.isPlanE = planCode == "PLAN_E" ? true : false;
$scope.showMenu = {};
 $scope.showMenu.showSubMenu = false;
   });
If i run this code first time i'm getting result


App Store  - if i click app store 2 submenyus are
  * General
  * App Categories

If i navigate to  to some other state then come back to this same sate
*appStoreController
gets *initialized. but when i click app store sub menus are not displaying
tryied to print the valiues {{ *showMenu.showSubMenu*}} displaying empty

Can any one help me to solve this issue.




Thanks & Regards,
Sasikumar.V

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to