2013-04-16 63 views

回答

3

当你定义你的指令,你必须使用骆驼,所以<show-card ...>将命名.directive('showCard' ...,不.directive('show-card' ...(见http://docs.angularjs.org/guide/directive

+0

我还想补充一点,'NG重复=“C卡”'应该在'li'元素上,因为这是重复的不是'ul' – lucuma

+0

是的,这可能是一个错误以及 – joakimbl

+0

感谢您修复该错误,实际上我最初想问的真正问题是:http ://stackoverflow.com/questions/16038891/angular-directive-link-not-called-when-attribute-updates –