How to use Angular input mask

3

I use AngularJs and Ionic and am trying to use this Input Mask , but I'm not sure how to do it. I follow the steps and even then this error appears: Angular Error .

References in index.html:

<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/services.js"></script>
<script src="../angular-input-masks/releases/angular-input-masks-standalone.min.js"></script>

app.js:

angular.module('starter', ['ionic', 'ui.utils.masks','starter.controllers', 'starter.services'])
    
asked by anonymous 27.10.2015 / 18:48

1 answer

4

The problem is that the reference to the angular-input-masks-standalone.min.js file was outside the www folder, making the file inaccessible. This way it worked.

Right way

<script src="mask/angular-input-masks-standalone.min.js"></script>

Wrong form

<script src="../angular-input-masks/releases/angular-input-masks-standalone.min.js"></script>

At least here it worked out.

    
27.10.2015 / 20:38