2016-06-19 10 views

答えて

-1

をインポートするときにこれは私のsystem-config.tsファイルがどのように見えるかです

'fast-json-patch': 'vendor/fast-json-patch/dist/json-patch-duplex.min.js'

system-config.tsファイルにmap下が、それは動作しません:

import * as express from 'express'; 
    import {ng2engine} from 'angular2-universal-preview'; 

    // Angular 2 
    import {App} from './src/app'; 

    let app = express(); 

    // Express View 
    app.engine('.ng2.html', ng2engine); 
    app.set('views', __dirname); 
    app.set('view engine', 'ng2.html'); 


    // static files 
    app.use(express.static(__dirname)); 


    app.use('/', (req, res) => { 
     res.render('index', { App }); 
    }); 



    app.listen(3000,() => { 
     console.log('Listen on http://localhost:3000'); 
    }); 

コードを追加してください。どうぞご覧ください。

関連する問題