Ruby on rails 轨道,角度2-导入角度拖放列表-参考错误:未定义角度
我刚刚开始在Rails 5.1中使用Angular 2 当我尝试在分类模块中导入时,rails应用程序中出现错误:Ruby on rails 轨道,角度2-导入角度拖放列表-参考错误:未定义角度,ruby-on-rails,angular,typescript,Ruby On Rails,Angular,Typescript,我刚刚开始在Rails 5.1中使用Angular 2 当我尝试在分类模块中导入时,rails应用程序中出现错误: 未捕获参考错误:未定义角度 将加载拖放文件,并且此错误将从其底部被欺骗: ... })(angular.module('dndLists', [])); 我做错了什么?我已经用npm安装了该软件包,现在它作为以下内容添加到我的package.json中: "angular-drag-and-drop-lists": "^2.1.0", 这是我的模块: import { NgMo
未捕获参考错误:未定义角度
将加载拖放文件,并且此错误将从其底部被欺骗:
...
})(angular.module('dndLists', []));
我做错了什么?我已经用npm安装了该软件包,现在它作为以下内容添加到我的package.json中:
"angular-drag-and-drop-lists": "^2.1.0",
这是我的模块:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { Http, HttpModule } from '@angular/http';
import { CategoriesIndexComponent } from './categories_index.component';
import { dndLists } from 'angular-drag-and-drop-lists';
@NgModule({
declarations: [
CategoriesIndexComponent
],
imports: [
dndLists,
BrowserModule,
HttpModule
],
providers: [],
bootstrap: [ CategoriesIndexComponent ]
})
export class CategoriesIndexModule{ }
那么Angular在文件之前没有被加载
这怎么会发生
我将感谢任何帮助