angularify / angular-semantic-ui

[WiP] AngularJS native directives for Semantic UI
http://angularify.github.io/angular-semantic-ui
MIT License
383 stars 87 forks source link

'Illegal use of ngTransclude directive' when using checkbox #26

Closed ethansure closed 9 years ago

ethansure commented 9 years ago

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 9 years ago

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