Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Just can't use ngMaterial - get inject errors no matter what I try?? #406

@jeffthompson1971

Description

@jeffthompson1971

For some reason I can't inject ngMaterial into my controller. I've looked aroudn on the web, saw some comments that need angular 1.3.. i've tried every angular version 1.3.x (i.e. rc0, rc1 rc2 etc) but no matter what I try, when I try to inject it as a dependency I get the usual (useless) angular inject error.

Note this is a well architected angular app and works across the board with any other angular directive i've included. I've tried removing other things like ngAnimate etc. and basically tried removing everything else. makes no difference. Only fails with ngMaterial, which I REALLY want for my UI :)

Please help!

My app is an angular-on-steroids app....Here are my includes:

<script src="http://localhost/cordova.js"></script> <script src="/components/steroids-js/steroids.js"></script> <script src="/bower_components/jquery/dist/jquery.min.js"></script> <script src="/bower_components/angular/angular.min.js"></script> <script src="/bower_components/angular-material/angular-material.js"></script> <script src="/bower_components/angular-animate/angular-animate.min.js"></script>

With a very basic controller:
var commonApp = angular.module('commonApp', ['jmdobry.angular-cache',
'angularLocalStorage',
'ionic',
'ngAnimate',
'ngMaterial'
])

.controller('IndexCtrl', function ($scope, $log, $ionicSideMenuDelegate) {
...
}
...
The usual useless error here:
"Error: [$injector:modulerr] http://errors.angularjs.org/1.3.0-rc.4/$injector/modulerr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions