'Illegal use of ngTransclude directive' when using checkbox
ethansure opened this issue · 1 comments
ethansure commented
Hi,
When I use <checkbox ng-model="checkboxModel"></checkbox>, there is a error:
Error: [ngTransclude:orphan] Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element:
Wish you could help me to solve this problem.Thank you.
ethansure commented
Sorry, It's my fault that I add ng-app to body, and bootstrap manually agin...
After review your code, I recommend you put ng-transclude to <div></div> being child of <label>
like this:
<label ng-click=xxx()><div ng-transclude></div></label>
:) thank you for implementing semantic in angularjs