\n\n \n\n \n \n \n \n\n```","suggestedAnswer":[{"@type":"Answer","text":"It is a file present in the Ionic bundle that must be copied to the root of our build"},{"@type":"Answer","text":"This file will be automatically generated and added at the time of the Cordova build"},{"@type":"Answer","text":"The cordova.js file bridges the gap between native plugins and JavaScript code"},{"@type":"Answer","text":"Ionic depends on cordova.js to run"}],"acceptedAnswer":[{"@type":"Answer","text":"This file will be automatically generated and added at the time of the Cordova build"},{"@type":"Answer","text":"The cordova.js file bridges the gap between native plugins and JavaScript code"}]}}

Question from the Ionic Framework test

What is the purpose of the cordova.js file?

Expert

Here is the index.html of our Ionic application, what is the cordova.js file?

<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">

    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <script src="cordova.js"></script>

    <script src="js/app.js"></script>
  </head>
  <body ng-app="app">
  </body>
</html>
Author: Benjamin CanacStatus: PublishedQuestion passed 129 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!