Jell-Tech / angular-bootstrap-material

Angular directives for FezVrasta/bootstrap-material-design (jell-web dependency)
MIT License
19 stars 5 forks source link

TypeError: Cannot read property 'input' of undefined #14

Open sergio11 opened 8 years ago

sergio11 commented 8 years ago

Hi!

I am using angularJS with bootstrap material. By including this library I get the following error:

captura_1

 <!-- Content -->
        <div ui-view class="anim-in-out anim-fade" data-anim-speed="1000"></div>

        <script src="./bower_components/jquery/dist/jquery.min.js"></script>
        <script src="./bower_components/angular/angular.min.js"></script>
        <script src="js/angular-bootstrap-material.min.js"></script>
        <script src="./bower_components/angular-animate/angular-animate.min.js"></script>
        <script src="./bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
        <script src="./bower_components/angular-ui-router-anim-in-out/anim-in-out.js"></script>
        <script src="./bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
        <script src="./bower_components/ng-tags-input/ng-tags-input.min.js"></script>
        <script src="./bower_components/angular-file-upload/dist/angular-file-upload.min.js"></script>
        <script src="./bower_components/ngSweetAlert/SweetAlert.min.js"></script>
        <script src="./bower_components/sweetalert/dist/sweetalert.min.js"></script>
        <script src="js/app.js"></script>

angular.module('app', ['ui.bootstrap', 'ui.router', 'ngAnimate', 'anim-in-out', 'ngTagsInput', 'angularFileUpload', 'oitozero.ngSweetAlert', 'flock.bootstrap.material'])

Thanks and Greetings.

bisonfoutu commented 8 years ago

Try including this tag juste before angular-bootstrap-material, it did the trick for me: <script src="./bower_components/bootstrap-material-design/scripts/index.js"></script>

If it doesn't work, try including these two:

<script src="./bower_components/bootstrap-material-design/scripts/material.js"></script>
<script src="./bower_components/bootstrap-material-design/scripts/ripples.js"></script>