Give dynamic id Angular2 Binds

后端 未结 4 2079
时光说笑
时光说笑 2021-02-05 03:11

My JavaScript:

 this.items = [
            {name: \'Amsterdam1\', id: \'1\'},
            {name: \'Amsterdam2\', id: \'2\'},
            {name: \'Amsterdam3\', i         


        
4条回答
提交回复
热议问题