jeudi 24 août 2017

I can't use angular UI bootstrap

I have installed angular-ui module and I have included the sngular-ui script in the HTML code:

<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
    <script src="../node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
    <script src="main.js"></script>
</head>

Now I try import the module in the script:

angular.module('angularTodo', ['ui.bootstrap']);

But in the browser console y get the next error:

ui-bootstrap-tpls.js:738 Uncaught TypeError: angular.module(...).controller(...).directive(...).directive(...).animation is not a function at ui-bootstrap-tpls.js:738

I don't know what is wrong. The angular-ui tutorial is very easy.




Aucun commentaire:

Enregistrer un commentaire