在离子2 rc0上添加自定义页面转换

时间:2016-11-04 12:39:15

标签: angular ionic2

我正在尝试进行自定义页面转换(缩小导航栏并将头像移动到它的位置),但我无法找到有关如何操作的任何材料。

我在本期https://github.com/driftyco/ionic/issues/8186中发现,现在可以轻松添加页面转换。

但是,在使用示例代码的回复结束时,@ NoNameProvided表示要修改app.module.ts文件以注册这样的转换:

this.config.setTransition('fade-transition', FadeTransition);

我想知道如何正确使用这个config.setTransition,因为我不清楚我要导入什么才能使用this.config

一旦我将自定义页面转换工作,就可以制作博客文章,以便其他人学习如何操作。

提前致谢。

1 个答案:

答案 0 :(得分:3)

您可以将<form action="{{ route('producten.destroy', ['product' => $product->id]) }}" method="POST"> {{ csrf_field() }} {{ method_field('DELETE') }} <button type="submit">Remove</button> </form> 注入Config构造函数

AppModule