Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic directives VS Angular material directives with Ionic Framework

I want to use ionic with material design. I am stuck between using ionic directives with custom CSS and angular-material

I have read that using ionic directives we get lot of efficient features like

  • App data is remembered with UI-router, even after navigating to other view and coming back to the page

  • Ionic list items are rendered only up to display height and reused when scrolling down or up

and a lot of performance improvements.

But, if I use ionic directives they don't have the material design.

If I use angular-material I will not have these performance improvements, and extra features needed for a mobile application.

Angular-material directives are like

<md-list>   <md-item ng-repeat="item in items">     Hello, {{item}}!   </md-item> </md-list> 

Ionic directives are like

<ion-list>   <ion-item ng-repeat="item in items">     Hello, {{item}}!   </ion-item> </ion-list> 

Looks like Ionic is funding angular-material project development, then why is angular-material not compatible to use with ionic?

How can I use angular-material components without losing the performance improvements and features of ionic?

OR

is there a better idea for using material design with ionic?

like image 813
Vamsi Avatar asked Mar 07 '15 16:03

Vamsi


People also ask

Can I use angular material with Ionic?

Angular Material is a collection of material design components for an Angular based on Google's material design specifications. We can easily use the material components in our Ionic angular project. It is optimized for Angular and can be integrated with an Angular application easily.

Is angular or Ionic better?

According to the StackShare community, AngularJS has a broader approval, being mentioned in 2793 company stacks & 1806 developers stacks; compared to Ionic, which is listed in 392 company stacks and 350 developer stacks.

What is difference between Ionic and angular?

Angular JS is a framework used to create client-side web application with support from back-end, like web API, whereas Ionic framework is HTML+CSS+JS based mobile app platform to create native-like applications for smartphones which is based on Apache Cordova on the top of Angular JS.

Can I use material UI with Ionic?

You can use any Material UI component in Ionic pages, the only thing you need to check about proper API need to be added in the page module file.


2 Answers

I found a material design CSS framework known as Materializecss. It looks promising. It's just plain CSS and javascript framework.

http://materializecss.com/

Advantages over other frameworks

  1. Pure CSS classes, will not conflict with ionic directives. No performance loss.
  2. Of all the frameworks I have seen, this is the only one closely following material design rules
  3. Almost ready it has about 50+ contributors it's current Version 0.95.3 in less than 6 months
  4. Easy to use. Well documented with feature wise navigation.
  5. It has almost all the material design features needed for an app.

This page http://materializecss.com/getting-started.html will show you how to include it in your projects.

I hope this helps for any of you searching for a good material design framework.

UPDATE: 2015-07-09

I Found another lightweight powerful beautiful CSS framework for material design

Material Design Light http://www.getmdl.io/

It is lightweight, has smooth and quick animations, looking pretty good. It was made by one of the Google developers. It is officially promoted by google https://developers.google.com/web/. It is getting quite popular, try it. Comparision with Angular Material

UPDATE: 2015-10-23

Ionic2 has InBuilt Support for Material Design in Android

It's Official, You can watch Ionic2 demo in AngularConnect, It has Material Design as default for Android. We don't need to worry about choosing a Material Design framework.

like image 192
Vamsi Avatar answered Oct 13 '22 00:10

Vamsi


There is a fairly new project called Ionic Material.

I've tried it out and it works pretty well, but be advised that it is still in "Pre-Release Preview" mode.

According to the github repo it should enter Alpha in April 2015.

It can be installed with bower

bower install ionic-material

That's pretty much all you need to do, but be warned, there are bugs and the documentation is basically non-existent.

Good luck!

like image 40
darryn.ten Avatar answered Oct 12 '22 23:10

darryn.ten