我试图将PrimeNG数据表与angular2一起使用,但它似乎不起作用。我已经安装了PrimeNG和npm。在我的组件中我导入
import {DataTableModule,SharedModule} from 'primeng/primeng';
然后在模板中使用
<p-dataTable [value]="students">
<p-column *ngFor="let col of cols" [field]="col.field" [header]="col.header"&g
我有一个Spring项目,它在前端使用了角。我最近把我的项目从角2升级到了角4。在升级之前和之后,我都可以构建和运行我的应用程序,当它被打包成war并在我的tomcat服务器上运行时,它运行得非常好。
但是,在开发前端更改时,我将通过角cli命令ng serve分别运行前端。当我在2号角的时候,那是非常好的工作。现在我使用了角4,当我通过ng serve运行应用程序时,当我试图在浏览器中加载应用程序时,我在开发人员控制台中得到了以下错误。
Uncaught Error: Unexpected value '[object Object]' imported by the mod
还有var map,package,var config是做什么的,我有点困惑,他们有没有做任何配置,我看过每个项目,我发现他们放这个文件的地方。这个函数是做什么的?
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'rxjs':
我的app.component.ts代码
import { Http, Response } from '@angular/http';
//import the do function to be used with the http library.
import "rxjs/add/operator/do";
import {FileUploadModule} from 'primeng/primeng';
//import the map function to be used with the http library
import &
我是angular2新手,我想知道systemjs.config.js文件中所有对象的使用情况。
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'di