How to make dynamic views with ionic angularjs -
i'm using ionic framework new application.
i have issue, want know how possible insert views dynimacally.
i make request server requesting news, response in in json :
{ "title":"news 1", "image":"http://www.server.com/news_image1.png", "description":"news_description" }, { "title":"news 2", "image":"http://www.server.com/news_image2.png", "description":"news_description" }, { "title":"news 3", "image":"http://www.server.com/news_image3.png", "description":"news_description" }
i want insert data dynmaically ion-view , able swipe between news image below :
so if have idea how can possible !
you slide box , use ng-repeat dynamically create slides. although if making bunch of slides use collection repeat. check out slide boxes here http://ionicframework.com/docs/api/directive/ionslidebox/ . , ng-repeat , collectio-repeat here , here https://docs.angularjs.org/api/ng/directive/ngrepeat , http://ionicframework.com/docs/api/directive/collectionrepeat/
Comments
Post a Comment