你好,我创建了2个文件夹客户端和服务器。我把express生成的文件放到我的服务器上。在客户端,我将Angular 2 Qucistart tutorial中的文件放入(没有正确的快速angular工作)。我只更改了layout.jade
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时。Angular不更改"my-app Loading...“
发布于 2016-07-25 11:50:35
尝试使用
<my-app> Loading... </my-app>https://stackoverflow.com/questions/38555939
复制相似问题