angular - 在 app.module.js 中的 Ionic 3 中导入 Angular 指令
问题描述
我正在尝试添加一个npm 包 ,该包会自动滚动到 ionic 3 中元素的底部。导入后我一直收到错误消息:
错误
scrollglue.js:164 Uncaught ReferenceError: 角度未定义
app.module.js
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { HttpClientModule } from '@angular/common/http';
import { MyApp } from './app.component';
//trying to import this angular directive
import { GlueScroll } from 'angularjs-scroll-glue';
....
declarations: [
MyApp,
PaymentPage,
PaypalPage,
AboutPage,
GlueScroll
],
imports: [
BrowserModule,
HttpClientModule,
BrowserAnimationsModule,
IonicModule.forRoot(MyApp, {
tabsHideOnSubPages: true,
}),
NgCircleProgressModule.forRoot({
showTitle: false,
showSubtitle: false,
showUnits: false,
space: -6,
backgroundPadding: -4,
backgroundStrokeWidth : -3
}),
PipesModule
],
普朗克:
解决方案
推荐阅读
- javascript - 曲奇 PHP LARAVEL
- agora.io - Agora React-native 语音通话
- wpf - 为什么我只在滚动查看器内的元素的 Y 轴上接收触摸操作增量平移值?
- django - django 会话值未通过。在电子商务项目的购物车中创建会话时该值未通过
- spring-boot - Spring Data MongoDb | 通用模型和存储库
- javascript - Set Y value in pixels in amchart
- flutter - 尽管调用 setState,但单击时 CheckboxListTile 状态未更改
- android - Intent Redirection Vulnerability warning from Play store
- contiki - Contiki-NG RE-Mote 板:收音机一直在收听
- android - how to change timezone without affecting the saved time in currentTimeMillis()?