This website requires JavaScript.
Explore
Help
Sign In
honeymoose
/
angular-cn
Watch
1
Star
0
Fork
You've already forked angular-cn
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e6afcf1f94
angular-cn
/
packages
/
language-service
/
test
/
project
/
app
/
test.ng
3 lines
51 B
Plaintext
Raw
Normal View
History
Unescape
Escape
test(language-service): Remove all markers from test project (#37475) This commit removes all markers from the inline template in `AppComponent` and external template in `TemplateReference`. Test scenarios should be colocated with the test cases themselves. Besides, many existing cases are invalid. For example, if we want to test autocomplete for HTML element, the existing test case is like: ``` <~{cursor} h1> ``` This doesn't make much sense, becasue the language service already sees the `h1` tag in the template. The correct test case should be: ``` <~{cursor ``` IMO, this reflects the real-world use case better. This commit also uncovers a bug in the way HTML entities autocompletion is done. There's an off-by-one error in which a cursor that immediately trails the ampersand character fails to trigger HTML entities autocompletion. PR Close #37475
2020-06-06 01:42:35 -04:00
<h1>{{title}}</h1>
<h2>{{hero.name}} details!</h2>