zachfitz / Ionic-Material

Material Design style and animations for Ionic
http://ionicmaterial.com
Other
2.9k stars 904 forks source link

Inject? #184

Closed schutzsmith closed 2 years ago

schutzsmith commented 8 years ago

I don't understand what "Step 4: Inject Ionic & Ionic Material into your Ionic App" means. Where are we placing this code? How does it need to be modified?

Thanks!

iguatemigarin commented 8 years ago

Hey, schutzmith!

In practice it means this:

<!-- a-page.html -->
<body ng-app="myApp">
...
</body>
// a-module.module.js
angular.module('myApp', ['ionic','ionic-material']);

It means that you should tell AngularJS that your app "myApp" will use "ionic" and "ionic-material". If this is not clear to you, I strongly suggest that you read the AngularJS documentation on modules: https://docs.angularjs.org/guide/module

Hope it helps,

Cheers

ekoom commented 7 years ago

Thanks, this is exactly what I was looking for.
The Step 4 was unclear since this a new start for me with ionic 2 and Angular 2.