ionic2 - Ionic 2: Importing angular library -
i new ionic , angular, , have found library i'd use in ionic app. have placed .js file in /src/assets/angular_slideables.js
, have tried link in index.html
, following error:
runtime error angular not defined
index.html
<!doctype html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>ionic app</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico"> <link rel="manifest" href="manifest.json"> <meta name="theme-color" content="#4e8ef7"> <!-- cordova.js required cordova apps --> <script src="cordova.js"></script> <link href="build/main.css" rel="stylesheet"> </head> <body> <!-- ionic's root component , app load --> <ion-app></ion-app> <!-- polyfills js generated during build process --> <script src="build/polyfills.js"></script> <!-- bundle js generated during build process --> <script src="build/main.js"></script> <script src="assets/angular_slideables.js"></script> </body> </html>
it understanding angular included when first started app. need link anyway?
Comments
Post a Comment