3 ms·
This is really impressive. I'm tempted by the idea that combined with AngularJS directives[1], this can really work wonders for iphone development. So instead o
by superasn 14y ago
This is really impressive. I'm tempted by the idea that combined with AngularJS directives[1], this can really work wonders for iphone development. So instead of all the divs and css, the code can be really boiled down to this:
<iphone-app>
<title-bar>
<button-prev />
</title-bar>
<slider>
<image src="1.jpg" />
</slider>
</iphone-app>
On the backend you can have something like:
angular.module(...).directive('titleBar', function(){
template: '<header class="bar-title"><h1 class="title">{{title}}</h1></header>'
});
Will make writing the code much easier and intuitive.
[1] http://docs.angularjs.org/guide/directive http://docs.angularjs.org/guide/directive