小编otu*_*web的帖子

如何使用ngFor和bootstrap创建一排新卡片4

我正在尝试使用带有Angular的Bootstrap 4的卡组功能ngFor.

这是我现在的HTML,但在插入3个项目后,我找不到如何打破新行:

<div class="row card-group">
    <div *ngFor="let presentation of presentations" class="col-4 card">
        <a [routerLink]="['/presentation', presentation._id]">{{presentation.title}}</a>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

我已经看到其他答案说要使用clearfix类,但到目前为止这对我来说还没有用.

twitter-bootstrap bootstrap-4 ngfor angular

7
推荐指数
1
解决办法
2万
查看次数

Parsekit或我自己解析?

我正在编写一个应用程序,我需要解析葡萄酒菜单.从我到目前为止看到的,它们都遵循一些结构,诀窍将是定义所有的结构.我现在正在探索使用Parsekit并创建语法,但学习曲线非常陡峭.我认为我不会在接下来的几个星期里把它搞清楚,然后意识到这不是正确的方法.

人们在解析这些事情时想要分享的任何见解/资源?谢谢,奥利维尔

cocoa grammar objective-c parsekit

4
推荐指数
1
解决办法
945
查看次数

Angular:仅在为 prod 构建时才获取模块未找到错误

更新

更新到 Angular v4 后,出现以下错误(我没有更改代码)。

ERROR in Invalid provider for ErrorHandler in /Users/otusweb/Documents/KeynoteTweet/web/node_modules/@angular/core/core.d.ts. useClass cannot be null.
       Usually it happens when:
       1. There's a circular dependency (might be caused by using index.ts (barrel) files).
       2. Class was used before it was declared. Use forwardRef in this case.

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users/otusweb/Documents/KeynoteTweet/web/src'
 @ ./src/main.ts 4:0-74
 @ multi ./src/main.ts
Run Code Online (Sandbox Code Playgroud)

原始问题

我正在尝试在我的 angular 2 应用程序中设置一个自定义全局错误处理程序以将它们发送到 rollbar。我关注了https://www.bennadel.com/blog/3138-creating-a-custom-errorhandler-in-angular-2-rc-6.htmhttps://netbasal.com/angular-2-custom-异常处理程序 1bcbc45c3230

当我在开发模式下运行时,一切正常。一旦我为 prod 构建(ng build --prod),我就会在浏览器中收到以下错误: …

error-handling angular

3
推荐指数
1
解决办法
1435
查看次数