ng-repeat inside UL (which is inside a P) is not working

前端 未结 2 575
你的背包
你的背包 2021-01-12 08:57

UPDATE: It seems Angular.js doesn\'t like the

    inside a

    . So, as helpful commenters said, replacing the

    with a

    solves the
2条回答
  •  太阳男子
    2021-01-12 09:46

    You were using

      tag inside

      tag. According to Html documentation List elements (in particular, ol and ul elements) cannot be children of p elements.

      So change

      to

      or

      See this question in stack overflow Should ol/ul be inside

      or outside?

提交回复
热议问题