Jquery Angularjs菜单就像母版页一样

Jquery Angularjs菜单就像母版页一样,jquery,angularjs,menu,master-pages,single-page-application,Jquery,Angularjs,Menu,Master Pages,Single Page Application,目前我正在做AngularJs项目 我有两个文件夹 一个是索引文件夹和页面此文件夹有一个带有4个菜单的索引页面 索引页代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Learn AngularJS - Inline Editor</title> <link href="http:

目前我正在做AngularJs项目

我有两个文件夹

一个是索引文件夹和页面此文件夹有一个带有4个菜单的索引页面

索引页代码:

<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8"/>
        <title>Learn AngularJS - Inline Editor</title>

        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" />

        <!-- The main CSS file -->
        <link href="style.css" rel="stylesheet" />

        <!--[if lt IE 9]>
            <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    </head>

    <!-- Notice the controller directive -->
    <body ng-app ng-controller="InlineEditorController">

        <!-- When this element is clicked, hide the tooltip -->
        <div id="main" ng-click="hideTooltip()">

            <!-- This is the tooltip. It is shown only when the showtooltip variable is truthful -->
            <div class="tooltip" ng-click="$event.stopPropagation()" ng-show="showtooltip">

                <!-- ng-model binds the contents of the text field with the "value" model.
                     Any changes to the text field will automatically update the value, and
                     all other bindings on the page that depend on it.  -->

                <input type="text" ng-model="value" />
            </div>

            <!-- Call a method defined in the InlineEditorController that toggles
             the showtooltip varaible -->
            <p ng-click="toggleTooltip($event)">{{value}}</p>

        </div>

        <!-- Include AngularJS from Google's CDN -->
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
        <script src="script.js"></script>
    </body>
</html>

学习AngularJS-内联编辑器

{{value}

这4个菜单是主页、项目等

如果单击一个主菜单,则会显示一些内容,如下图所示:

如果我点击项目菜单,如下图所示

这两种方式都有助于只显示内容(文本),但我想显示另一个页面(而不是文本)

我有项目页面(html),如果我选择项目菜单,那么我想显示项目页面


像索引页一样就像母版页和其他页面的内容页一样吗?在angularjs中是可能的吗?

您可能需要查看此文档-

这将帮助你实现你想做的事情

此外,您可能希望遵循有关ng应用程序的角度指南,例如

<div ng-app="myApp">
    <div ng-controller="MainCtrl">
        <!-- controller logic -->
    </div>
</div>


希望对您有所帮助。

您可能需要查看此文档-

这将帮助你实现你想做的事情

此外,您可能希望遵循有关ng应用程序的角度指南,例如

<div ng-app="myApp">
    <div ng-controller="MainCtrl">
        <!-- controller logic -->
    </div>
</div>


希望对您有所帮助。

您可能需要查看此文档-

这将帮助你实现你想做的事情

此外,您可能希望遵循有关ng应用程序的角度指南,例如

<div ng-app="myApp">
    <div ng-controller="MainCtrl">
        <!-- controller logic -->
    </div>
</div>


希望对您有所帮助。

您可能需要查看此文档-

这将帮助你实现你想做的事情

此外,您可能希望遵循有关ng应用程序的角度指南,例如

<div ng-app="myApp">
    <div ng-controller="MainCtrl">
        <!-- controller logic -->
    </div>
</div>


希望对您有所帮助。

您可能想退房。与内置的“$route”和“ngView”相比,这个模块要复杂一些,但当您将来不得不创建更复杂的导航结构(如二级导航等)时,您会心存感激。您可以从教程开始,也可以直接跳到。

您可能需要查看。与内置的“$route”和“ngView”相比,这个模块要复杂一些,但当您将来不得不创建更复杂的导航结构(如二级导航等)时,您会心存感激。您可以从教程开始,也可以直接跳到。

您可能需要查看。与内置的“$route”和“ngView”相比,这个模块要复杂一些,但当您将来不得不创建更复杂的导航结构(如二级导航等)时,您会心存感激。您可以从教程开始,也可以直接跳到。

您可能需要查看。与内置的“$route”和“ngView”相比,这个模块要复杂一些,但当您将来不得不创建更复杂的导航结构(如二级导航等)时,您会心存感激。您可以从教程开始,也可以直接跳到