首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >全栈应用程序如何使用Express运行Angular2

全栈应用程序如何使用Express运行Angular2
EN

Stack Overflow用户
提问于 2016-07-25 03:30:54
回答 1查看 209关注 0票数 0

你好,我创建了2个文件夹客户端和服务器。我把express生成的文件放到我的服务器上。在客户端,我将Angular 2 Qucistart tutorial中的文件放入(没有正确的快速angular工作)。我只更改了layout.jade

代码语言:javascript
复制
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...“

EN

回答 1

Stack Overflow用户

发布于 2016-07-25 11:50:35

尝试使用

代码语言:javascript
复制
<my-app> Loading... </my-app>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38555939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档