0
你好,我創建了2個文件夾客戶端和服務器。我把我的服務器,由快遞生成的文件。在客戶端,我把來自Angular 2 Qucistart tutoria l的文件(沒有明確的角度正常工作)。我只改變了layout.jadeFullstack應用程序如何使用Express運行Angular2
doctype html
html
head
title Angular 2 QuickStart JS
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='stylesheet', href='styles.css')
// 1. Load libraries
// IE required polyfill
script(src='../../client/node_modules/core-js/client/shim.min.js')
script(src='../../client/node_modules/zone.js/dist/zone.js')
script(src='../../client/node_modules/reflect-metadata/Reflect.js')
script(src='../../client/node_modules/rxjs/bundles/Rx.umd.js')
script(src='../../client/node_modules/@angular/core/bundles/core.umd.js')
script(src='../../client/node_modules/@angular/common/bundles/common.umd.js')
script(src='../../client/node_modules/@angular/compiler/bundles/compiler.umd.js')
script(src='../../client/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js')
script(src='../../client/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js')
// 2. Load our 'modules'
script(src='../../client/app/app.component.js')
script(src='../../client/app/main.js')
// 3. Display the application
body
my-app Loading...
block content
當我從服務器啓動app.js。角不要改變「我的應用程序內加載...」
任何錯誤? – Ajey
存在一些錯誤,相同類型的一些錯誤 *加載資源失敗:服務器響應狀態爲404(未找到) http:// localhost:3000/client/node_modules/@ angular/core/bundles/core.umd.js http:// localhost:3000/client/node_modules/@ angular/client/node_modules/@ angular/core/bundles/core.umd.js etc ... – user2510058
你可以把你的代碼在github上,並在這裏發佈鏈接? – Ajey