Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 角度,在ui视图内设置ui视图_Angularjs_Angular Ui Router - Fatal编程技术网

Angularjs 角度,在ui视图内设置ui视图

Angularjs 角度,在ui视图内设置ui视图,angularjs,angular-ui-router,Angularjs,Angular Ui Router,我有一个关于多重观点的问题。这很难解释,但我会尝试: 已成功导航到状态“关于”并设置ui视图“columnOne”和ui视图“columnTwo”的模板url .state('about', { url: '/about', views: { // the main template will be placed here (relatively named) '': { templateUrl: 'partial-about.html'

我有一个关于多重观点的问题。这很难解释,但我会尝试:

已成功导航到状态“关于”并设置ui视图“columnOne”和ui视图“columnTwo”的模板url

    .state('about', {
    url: '/about',
    views: {

        // the main template will be placed here (relatively named)
        '': { templateUrl: 'partial-about.html' },

        // the child views will be defined here (absolutely named)
        'columnOne@about': { template: 'Look I am a column!' },

        // for column two, we'll define a separate controller 
        'columnTwo@about': { 
            templateUrl: 'table-data.html',
            controller: 'scotchController'
        }
    }

});
现在我想从视图“columnOne”设置视图“ColumnTwo”的templateUrl。
这是怎么做到的?有可能吗?

您从网站上获取的示例是并行视图示例非嵌套视图嵌套视图可以通过创建页面而不是使用其他状态来创建。like registration是一个页面和多步骤表单,与包含注册的页面相比,我们将声明注册和部分like registration.contact、registration.acadamics、registration.extraactivities。真正的人那里的文档是安静的混乱

你从那里拿的例子是平行视图例子不是嵌套视图嵌套视图可以通过制作一个页面而不是使用其他状态来制作。like registration是一个页面和多步骤表单,与包含注册的页面相比,我们将声明注册和部分like registration.contact、registration.acadamics、registration.extraactivities。真的,那里的文档非常混乱

你有例子吗?你有例子吗?