jjaybrown / ionic-material-design-lite

Material Design (Lite) style override for Ionic Framework
521 stars 129 forks source link

Question: Installation process not clear #81

Open LuisMCunha opened 8 years ago

LuisMCunha commented 8 years ago

Hi,

I've been trying to integrate ionic-material-design-lite in my current ionic project, but have not, so far, been 100% successful. I ran bower install ionic-material-design-lite and pasted the following lines below the ionic imports (when I pasted them above I got errors about angular not being defined, so I assume this is the correct way):

<link href="/lib/ionic-material-design-lite/dist/css/ionic.material-design-lite.min.css" rel="stylesheet">
<script src="lib/ionic-material-design-lite/dist/js/ionic.material-design-lite.bundle.min.js"></script>

This transformed the layout on android immediately, but not on iOS (as expected) so I added the line:

  $ionicMaterialConfigProvider.enableForAllPlatforms();

to my .config() , but without luck and all my attempts to include ionicMaterialConfigProvider as a module resulted in the following error:

0 871882 error Uncaught Error: [$injector:modulerr] Failed to instantiate module localpower due to: Error: [$injector:modulerr] Failed to instantiate module $ionicMaterialConfigProvider due to: Error: [$injector:nomod] Module '$ionicMaterialConfigProvider' is not......2), http://192.168.1.187:8101/lib/ionic/js/ionic.bundle.js, Line: 13212

So my question is, what else do I have to do to completely install the framework? Thanks.

jjaybrown commented 8 years ago

Looks like an issue with $ionicMaterialConfigProvider do you have the full stack trace?

LuisMCunha commented 8 years ago

I was able to get it working, it was some kind of conflict with the native transitions plugin it seems, after removing that plugin, $ionicMaterialConfigProvider didn't throw any errors and after rearranging the import order I didn't get any more issues. Don't know what caused this, also that was the full extent of the error log that I was shown. Once again thank you for your work on this project.