TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Angular 2 Series – Part 1: Working with Pipes

2 点作者 ryanchenkie将近 10 年前

1 comment

bceagle将近 10 年前
The async pipe to do asynchronous binding is pretty sweet. I think (if I remember correctly) they tried to do something like this by default in Angular 1 (i.e. wait until promises resolve and then display the result), but then they took it out because it was causing other issues. If you did want all your bindings to by async in Angular 2, though, I wonder if there is a way to set a global configuration option or something. That way you don't need to include the | async with each binding.
评论 #10167556 未加载