The challenge to the installation of ngMessage

Seems to be working.
If there is no problem, I want to support.

(How to install & How to use.)
https://docs.angularjs.org/api/ngMessages

(ngmessages cdn)
https://code.angularjs.org/1.3.0-beta.11/angular-messages.js

(sample code)
< link href=“http://code.ionicframework.com/1.0.0-beta.7/css/ionic.css” rel=“stylesheet”/>
< script src=“http://code.ionicframework.com/1.0.0-beta.7/js/ionic.bundle.js”>
< script src=“http://code.ionicframework.com/1.0.0-beta.7/js/angular/angular-resource.js”>
< script src=“https://code.angularjs.org/1.3.0-beta.11/angular-messages.js”>

Hi,
I followed @Calendee’s tutorial to install ngMessage on my app, but I didn’t succeed, when the app shows the template using the ng-message directive I get this message:

Controller ‘ngMessages’, required by directive ‘ngMessage’, can’t be found!

In my index.html I have:

<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="js/angular-messages.js"></script>

And I injected it on my app:

angular.module('ionicApp', ['ionic', 'ngMessages'])  

I’m using ionic 1.0.0-beta14 and the version of angular-messages.js is 1.3.6

Thank you!

1 Like

Any chance you can setup a CodePen sample showing the problem? If you’ve got the ngMessage src included and injected, you should be good to go.

One suggestion, check your “Network” in developer tools and make sure the ngMessages source is actually getting downloaded.

1 Like

The problem was just a typo in the template. It’s working fine now.
Thank you anyway @Calendee

@bottleboy What Typo was that, cuz i have the exact same problem.

1 Like