ionicBootstrap不在app

ionicBootstrap不在app

本文介绍了ionicBootstrap不在app.component.ts ionic v2.1.18中导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我叫Kris Chery。我是离子的新手,我正在使用2.1.18版。我一直在关注本教程,我认为这对离子的功效非常有见地。

我被困在ionicBootstrap实施中。现在它是一个简单的服务,需要显示一条消息,但出于某种原因。我似乎无法导入离子Bootstrap,它表示ionicBoostrap未从节点模块导出。

I am stuck at the ionicBootstrap implementation. For now its a simple service that needs to display a message but for some reason. I can't seem to import ionic Bootstrap it is saying that ionicBoostrap wasn't exported from node modules.

这是我梦寐以求的应用程序必不可少的信息。任何帮助将不胜感激。

This is information is imperative for me to my dream app. Any help would be much appreciated.

更新:我已就此事做了一些数字或研究,但没有一个对如何解决或实施它做出了很好的解释正确。

UPDATE: I have done a number or research on the matter but none led to a good explanation on how to fix it or to implement it properly.

推荐答案

我建议不要使用该教程并使用官方的Angular文档。那是在七月写的。当时Angular 2仅处于RC阶段,而Ionic 2仍处于测试阶段。从那时起,很多事情都发生了变化。

I'd recommend not using that tutorial and using the official Angular docs instead. That was written back in July. Back then Angular 2 was only in RC phase and Ionic 2 was still in beta. A lot has changed since then.

你不想为此使用bootstrapping,你的应用程序已经在app.ts中进行了自举。相反,在app.module.ts中,您可以导入其他模块并声明提供者。

You don't want to use bootstrapping for this, your app already does it's bootstrapping in app.ts. Instead in app.module.ts you can import other module and declare providers.

Angular 2教程:
引导和模块:

Angular 2 Tutorial: https://angular.io/docs/ts/latest/tutorial/Bootstrapping and modules: https://angular.io/docs/ts/latest/guide/ngmodule.html#!#bootstrap

这篇关于ionicBootstrap不在app.component.ts ionic v2.1.18中导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 01:32