I want to make a multi-level menu> 3. Here is my code

   1. HTML
      1. *<respond-page-type-child 
      pagetype="pageType"></respond-page-type-child>*
      2. Derective 
      1. 
      2. angular.module('respond.directives')
      3.     .directive('respondPageTypeChild', function () {
      4.     return {
      5.     // attribute
      6.     restrict: 'E',
      7.     scope: {
      8.     //pagetypeid: '=pagetypeid',
      9.     pagetype: "="
      10.     },
      11.     replace: true,
      12.     controller: function ($scope) {
      13.     $scope.PageTypeChild = $scope.pagetype.Child;
      14.     console.log($scope.PageTypeChild);
      15.     },
      16.     link: function (scope, element, attrs) {
      17.     //scope.TypeId = scope.pagetypeid.PageTypeId;
      18.     //scope.Types = scope.pagetypes;
      19.     //console.log(scope.Types.length);
      20.     },
      21.     template: 
      22. "<ul>"
      23. + "<li ng-repeat='pagetype in PageTypeChild'>"
      24. + "/{{pagetype.FriendlyId}}  - {{(pagetype.Child).length}}"
      25. //+ "<respond-page-type-child ng-if='(pagetype.Child).length>0' 
      pagetype='pagetype.Child'></respond-page-type-child>"
      26. //+ "<ul ng-if='test_log(pageType)' 
      class='respond-multi-page-type' pagetypeid='pageType' 
      pagetypes='Types'>"
      27. // +"<li>Long ne</li>"
      28. //+"</ul>"
      29. + "</li>"
      30.     + "</ul>"
      31. 
      32.     };
      33.     });
   
I tried to fix it but to no avail,
This is a problem that I encountered

<https://lh3.googleusercontent.com/-_iI5UlFsJnI/VlgD3KH3SoI/AAAAAAAABQg/r2YepTWUWaE/s1600/Untitled.png>













please help me!!!

-- 
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