angular-hint icon indicating copy to clipboard operation
angular-hint copied to clipboard

RFC: Improving hints related to $parse

Open btford opened this issue 10 years ago • 1 comments

Problem

Parsers are hard.

Current solution

Decorate $parse and use regexes to do naive checks on expressions.

Ideal solution

Regexes aren't powerful enough. Instead, we should replace the implementation of $parse with our own implementation that both logs helpful information and also does proper parsing. This is challenging because we'd possibly have to support a debug version of $parse for each version of Angular to ensure that we preserve existing behavior.

btford avatar Jul 09 '15 21:07 btford

Another thing to note is that we don't want to be throwing these hints every digest cycle.

SomeKittens avatar Jul 09 '15 21:07 SomeKittens