router

    0熱度

    2回答

    我想用可選的參數調用路線。 我的路由器 const appRoutes: Routes = [ { path: '', redirectTo: 'bo', pathMatch: 'full' }, { path: 'login', component: LoginComponent }, { path: 'bo', component: LayoutComponen

    0熱度

    1回答

    我現在用我家的路由器面臨一個問題。我想編寫一個小應用程序,以確保在過去30分鐘內沒有數據包傳輸時路由器將停止/關閉。有辦法嗎? 準確地說,我想關閉我的路由器/通過Java程序啓動它,拼命尋找一些有經驗的編碼人員的建議。 任何幫助將受到歡迎。 感謝

    4熱度

    1回答

    我想了解如何動態添加路由到那些來自延遲加載模塊。 我擁有核心應用,而在路線: export const routes = [{ path: "", component: HomeComponent }, { path: "moduleA", loadChildren: "app/moduleA/A.module" }]; 在A.module我從導入

    1熱度

    2回答

    這讓我瘋狂......我在路由器定義中添加了一個路由來提供純文本robots.txt文件。我不認爲我在/robots.txt路由之前有一個catchall,因爲到/ mobile和/ map的其他路由按預期工作。在我的本地機器上,/robots.txt工作正常。只有在部署到服務器時,這條路線才能工作。 router.get('/', function (req, res) { res.r

    0熱度

    1回答

    我的應用程序需要本地化支持。我正在使用同構中繼路由器。 const customQueries = { viewer:() => Relay.QL' fragment on JobSeekerEntry{ language } ' }; export default [ { path: '/', compo

    0熱度

    1回答

    我在python中使用套接字模塊連接到路由器上的DNS服務器。連接成功,如果我發送消息,我得到一個空白的回覆,但是我可以寫入DNS服務器的命令是什麼? Router is a Huawei Hg552e gateway: 192.168.1.1 dns server port: 53

    1熱度

    2回答

    嗨,我已經設置了這個plunkr來演示我的問題。 https://plnkr.co/edit/tO4xbD15A3FvjpaGw6J5?p=preview 這是成功登錄後執行重定向的代碼的主要部分。我不是指「isLoggedIn」變量,因爲這是在回調函數... loginLaunch() { console.log("authentication.ts:loginLaunch()"); let

    1熱度

    1回答

    好人,你好! 我有一些打嗝讓我的頭與周圍的工作。由於某種原因,沒有數據傳遞給我的邊欄組件。該數據是在我<script id="preloadedData">節點可用,但它沒有獲得通過到它應該去 client.js: match({ routes, history: browserHistory }, (error, redirectLocation, renderProps) => {

    -1熱度

    1回答

    我的應用程序初始化如下所示: var $ = jQuery = require('jquery'), Router = require('./router'), Backbone = require('backbone'); var bootstrap = require('bootstrap'); var app = { init: function() {

    9熱度

    3回答

    我可以設置兩種途徑這樣 index.js var express = require('express'); var app = express(); var router = express.Router(); const PORT = 3001; app.get('/', function(req, res){ res.send('hello app'); }); a