Skip to content

P47和48页一个绑定数据错误 #9

@jiayisheji

Description

@jiayisheji

这是一个主题树的栗子

错误的

<ul ng-if="vm.$hasChildren()">

正确应该是

<ul ng-if="vm.items">

因为controller里面没有绑定$hasChildren()方法,只有在service里面有定义这个方法。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions