简体   繁体   English

控制台中的 ng-bootstrap/ng-bootstrap 不提供默认值

[英]ng-bootstrap/ng-bootstrap in console offers no default values

i tried to install ng-bootstrap for creating a most simple helloWorld angular-bootstrap app.我尝试安装 ng-bootstrap 来创建一个最简单的 helloWorld angular-bootstrap 应用程序。

i found i have to use ( https://github.com/ng-bootstrap/ng-bootstrap#installation ):我发现我必须使用( https://github.com/ng-bootstrap/ng-bootstrap#installation ):

ng add @ng-bootstrap/ng-bootstrap ng 添加@ng-bootstrap/ng-bootstrap

if others using it it looks like so:如果其他人使用它,它看起来像这样:

这个工作看起来不同

but when i using it looks like so:但是当我使用它时看起来像这样:

ng add @ng-bootstrap/ng-bootstrap

then it looks like so:然后看起来像这样:

在此处输入图像描述

I tried to get forward by pressing enter.我试着按回车键前进。 expected its using default - values.期望它使用默认值。 But it offers no default - values.但它不提供默认值。

What could i do?我能做什么?

I want to create a helloWorld angular-bootstrap app and it seems something wrong with my system i think.我想创建一个 helloWorld angular-bootstrap 应用程序,我认为我的系统似乎有问题。

I didn't found if this ng-latin console is useful for that, but found another way:我没有发现这个ng-latin console是否对此有用,但找到了另一种方法:

  1. https://github.com/ng-bootstrap/ng-bootstrap#installation https://github.com/ng-bootstrap/ng-bootstrap#installation
  2. https://angular.io/cli https://angular.io/cli

this works for me:这对我有用:

npm install -g @angular/cli
ng new my-first-project
cd my-first-project/
ng add @ng-bootstrap/ng-bootstrap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM