在哪里可以找到应用程序的AngularJS组件的链接/调用?

时间:2017-02-09 01:38:32

标签: angularjs cordova ionic-framework moodle

从上一个我发布的问题开始,我问到AngularJS应用程序(Moodle Mobile)的index.html在打开时会导致什么。根据我收到的回复,我了解到应用会从moodlemobile-phonegapbuild/core/components/login/templates/调用模板以形成登录页面。

我的问题是,当我开始.html时,应用程序将如何以及在何处声明应用程序将从moodlemobile-phonegapbuild/core/components/login/templates/加载index.html个文件?

供参考,这是index.html:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <meta http-equiv="Content-Security-Policy" content="default-src * filesystem: cdvfile: file: gap: https://ssl.gstatic.com; img-src * filesystem: gap: data: cdvfile: file: https://ssl.gstatic.com android-webview-video-poster:; style-src 'self' 'unsafe-inline' filesystem: cdvfile: file:; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* filesystem: cdvfile: file:">
    <title></title>
    <link href="build/mm.bundle.css" rel="stylesheet">
    <script src="lib/ionic/release/js/ionic.bundle.js"></script>
    <script src="cordova.js"></script> <!--cordova.js will 404 during local development, as it gets injected into your project during Cordova’s build process.-->
    <script src="lib/angular-translate/angular-translate.js"></script>
    <script src="lib/angular-translate-loader-partial/angular-translate-loader-partial.js"></script>
    <script src="lib/ngCordova/dist/ng-cordova.js"></script>
    <script src="lib/ydn.db/jsc/ydn.db-dev.js"></script>
    <script src="lib/angular-md5/angular-md5.js"></script>
    <script src="lib/angular-aria/angular-aria.js"></script>
    <script src="lib/moment/min/moment-with-locales.js"></script>
    <script src="lib/jszip/dist/jszip.js"></script>
    <script src="lib/oclazyload/dist/ocLazyLoad.js"></script>
    <script src="lib/ckeditor/ckeditor.js"></script>
    <script src="lib/angular-ckeditor/angular-ckeditor.js"></script>
    <script src="lib/angular-messages/angular-messages.js"></script>
    <script src="build/mm.bundle.js"></script>
    <style></style> <!-- Empty style to make easier to test styles using Inspector. -->
  </head>
  <body ng-app="mm">
    <ion-nav-view></ion-nav-view>
  </body>
</html>

正如您所看到的那样,对下一个“页面”的位置有0个引用。我做了一些关于离子框架如何工作的读法,现在我明白<ion-nav-view>将控制“页面”的视图,就像把.html文件夹中的个体/templates形成一样登录页面。

但问题仍然存在,我可以在哪里找到使用来自.html的{​​{1}}文件的离子被告知形成登录“页面”的引用,具体一旦我开始{{ 1}}吗

非常感谢您的帮助。

0 个答案:

没有答案