Edit In Place Content Editing

前端 未结 4 1754
暗喜
暗喜 2020-12-04 06:02

When using ng-repeat what is the best way to be able to edit content?

In my ideal situation the added birthday would be a hyperlink, wh

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 06:35

    I've modified your plunker to get it working via angular-xeditable:

    http://plnkr.co/edit/xUDrOS?p=preview

    It is common solution for inline editing - you creale hyperlinks with editable-text directive that toggles into tag:

    
        {{bday.name || 'empty'}}
    
    

    For date I used editable-date directive that toggles into html5 .

提交回复
热议问题