【问题标题】:Laravel routing to angular app folderLaravel路由到角度应用程序文件夹
【发布时间】:2014-06-27 06:10:12
【问题描述】:

我有以下 laravel 结构视图

-public
--site
---app (this one shoul hold an angular app)
---views (normal php views are stored here)
--routes.php

我想创建一条到我的 Angular 应用程序的路由,该应用程序应该与 laravel restAPI 通信

我的一条正在运行的路线

Route::get('blog', array('as' => 'article.list', function()
{
    return View::make('site::articles')->with('entries', Article::orderBy('created_at', 'desc')->get());
}));

但是我如何将我的 Angular 应用程序路由到应用程序子文件夹

Route::get('configurator', array('as' => configurator', function()
{
    // this won't work View [app.index] not found. 
    //return View::make('site::app.index');
}));

【问题讨论】:

    标签: angularjs laravel laravel-routing


    【解决方案1】:

    你应该创建一个 laravel 视图,然后在这个视图中调用你的角度路由。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-28
    • 2011-11-02
    • 1970-01-01
    • 2016-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多