What is the Difference between and in Ionic framework?

Clash Royale CLAN TAG#URR8PPP
What is the Difference between <ion-list> and <div class=“list”> in Ionic framework?
I am learner and i would like to know what is the diff b/w ionic and HTML tags and which tags are good for Hybrid mobile developing apps,Can some one suggest me please below two code working fine in my mobile app but which tags are most preferable?
<div class="list">
<div class="item item-divider"> <!-- this creates the divider -->
</div>
<a class="item" href="#">
</a>
<ion-list>
<ion-item class="item-toggle">
Enable Friends
<label class="toggle">
<input type="checkbox" ng-model="settings.enableFriends">
<div class="track">
<div class="handle"></div>
</div>
</label>
</ion-item>
</ion-list>
2 Answers
2
The difference between the two are the pure html that just use the
css, or the directives that have extended the functionality.
The ion- prefixed directives, ion-list,ion-item, etc, are angular
directives that let you have extended features (swipe to delete,
reorder, etc).
link
As mentioned here, main difference is that ionic tags serves more functionalities, and other than that.
Is there any performance issue occurs if we use pure html tags inside <ionic-content>?
– AbhiRam
Aug 10 at 10:20
Of course no, you can think ionic tags like normal tag with class= "something", namely with css extras. Therefore, using pure tags or html tags does not differ at all in terms of performance.
– Shahriyar Mammadli
Aug 10 at 10:24
Thanks,But is there is no best ionic-tags documentation for UI beatification like below link w3schools.com/howto/howto_css_images_side_by_side.asp
– AbhiRam
Aug 10 at 10:28
Ionic uses term "component" that together creates an app so documentations are based on that. Therefore, you search for proper component while developing. Ionic documentation is actually is best I think, it provides demos for its components. So, when you need specific functionality, find it in documentation and use the corresponding demo(or mostly documentation is enough). Here is the documentation if you have not seen yet: ionicframework.com/docs/components
– Shahriyar Mammadli
Aug 10 at 10:38
Ok thanks @Shahriyar Mammadli
– AbhiRam
Aug 10 at 10:43
ion-list comes with certain styles already applied to it so that you do not have to write custom CSS for them to look presentable. Also ion-list has features that come out of box enabling you to put together a quick prototype. It also includes features like swipe which are normal actions taken by users on mobile so that developers dont have to write custom javascript to enable such features.
Thanks @Sameeksha Kumari
– AbhiRam
Aug 10 at 10:44
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Possible duplicate of Difference between <ion-list> and <div class="list"> in Ionic framework?
– DayOne
Aug 10 at 10:17