您好我创建了2个文件夹客户端和服务器。我把快递生成的文件放到我的服务器上。在客户端,我放置Angular 2 Qucistart tutoria l中的文件(没有正确的角度工作)。我只改变了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 ..."
答案 0 :(得分:0)
尝试使用
<my-app> Loading... </my-app>