Neither in the documentation or in the many video courses someone directly gives attention to the ionic-specific HTML tags. How is <ionic-header-bar
> any different than <header>
? Is there a W3Schools like resource on the ionic HTML tags?
They are known as directives (in Ionic 1) and are an elegant way of implementing custom elements to a page. A directive is an AngularJS 1.* feature
https://docs.angularjs.org/guide/directive
It’s in your interest to get used to using them as much as possible because Ionic2 (which is currently in beta) will be making much more use of them in the form of components.
So Angular provides a way for platforms like Ionic to register custom elements yeah? Is there a site that lists all the possible Ionic directives?
BTW Im kind of new to web development.
Yeah basically!
The Ionic Documents are pretty good so always have them open in a tab http://ionicframework.com/docs/
And is it possible to use those directives directly as “raw html”?
Let explain (Ionic 2 app):
- assuming that in a template there’s something like: