2017-05-20 1 views
0
.directive('clinicalTrailModal', function ($compile) { 
    return { 
    restrict: 'EA', 
     scope: { 
      context: '=', 
      dui: '=' 
     }, 
    templateUrl: 'app/templates/lbdAdsModal.html' 
    }) 

,각도 js에서 지침을 호출하는 방법은 무엇입니까? 나는 다음과 같은 허위 사실 조건에 따라이 지침을 호출하고

<clinical-trail-modal value="currentUrl" dui="typeDisease._id" data-ng-if="clinicalTrailModal"></clinical-trail-modal> 

는하지만 내가

restrict: 'EA', 
     scope: { 
      context: '=', 
      dui: '=' 
     }, 

를 제거 일하러 does'nt이 새로운 오전을 남기고 그 아무도 도와 줄 수 없어. 고마워.

+0

clinicalTrailModal 플래그를 선언 했습니까? – Karim

답변

0

범위에 컨텍스트를 전달할 가능성이 있습니다. 컨텍스트를 제거하거나 전달하거나 선택적으로 만듭니다.

restrict: 'EA', 
     scope: { 
      context: '=?', //optional 
      dui: '=' 
     } 
관련 문제