question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`banana-in-box` can be deprecated once new Angular compiler checks have auto-fixing

See original GitHub issue

According to https://github.com/angular/angular/issues/42966, the compiler will start complain about wrong syntax in two-way binding, like we already do in banana-in-box rule.

In fact, the check has already been implemented in https://github.com/angular/angular/pull/42984 (https://github.com/angular/angular/commit/d6411c27291b69f46b3b7f648d3445c9c4ba3a4a) and https://github.com/angular/angular/pull/43232 (https://github.com/angular/angular/commit/fc85fa85ba7400b8a9b8a34677c6ada8ad301676).

So, with this in mind, should the banana-in-box rule be deprecated? cc @JamesHenry

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesHenrycommented, Sep 20, 2021

FYI Joost from the Angular Team said that these compiler checks are still behind a flag so it’s not time to deprecate it yet

1reaction
JamesHenrycommented, Sep 20, 2021

Cool, good catch! Yeah looks like we should mark this as deprecated in v13 onwards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular compiler options
When you use ahead-of-time compilation (AOT), you can control how your application is compiled by specifying template compiler options in the TypeScript ...
Read more >
Ahead-of-time (AOT) compilation - Angular
The AOT compiler detects and reports template binding errors during the build step before users can see them. Better security, AOT compiles HTML...
Read more >
Angular CLI Strict Mode
To opt into the strict mode, you need to create a new Angular CLI app ... One additional check we've enabled is the...
Read more >
How the Angular Compiler Works
The Angular Compiler (which we call ngc) is the tool used to compile Angular applications and libraries. ngc is built on the TypeScript ......
Read more >
Angular v15 is now available!
Over the past year we removed Angular's legacy compiler and rendering ... You can build a multi-route application using the new router ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found