Ionic serve does not load angular js and ionic css -
i new in ionic field. created new app in localhost folder(c:\xampp\htdocs). when go "http://localhost/ionapp/www/" works fine when run app "ionic serve" command blank page. when viewed page source found ionic.css , ionic.bundle.js file not loaded during ionic serve. , in console error "angular not defined". can please me fix this?
here index.html should load css , js files
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- if using sass (run gulp sass first), uncomment below , remove css includes above <link href="css/ionic.app.css" rel="stylesheet"> --> <!-- ionic/angularjs js --> <script src="lib/ionic/js/ionic.bundle.js"></script> <!-- cordova script (this 404 during development) --> <script src="cordova.js"></script> <!-- app's js --> <script src="js/app.js"></script> <script src="js/controllers.js"></script> <script src="js/services.js"></script> </head> <body ng-app="starter"> <!-- nav bar updated navigate between views. --> <ion-nav-bar class="bar-stable"> <ion-nav-back-button> </ion-nav-back-button> </ion-nav-bar> <!-- views rendered in <ion-nav-view> directive below templates in /templates folder (but have templates inline in html file if you'd like). --> <ion-nav-view></ion-nav-view> </body> </html>
so not issue ionic browser. turns out getting err_connection_reset
in console. did was
- open cmd prompt administrator.
- run command
netsh winsock reset
. - restart computer.
i don't know how happened solved problems.
Comments
Post a Comment