webstorm angular property binding autocomplete

Does WebStorm support auto-completion for angular property binding? (example: <img [src] ..>)

It does support event binding, but not property.

0
14 comments
Avatar
Permanently deleted user

I'am using WebStorm 2017.3 (Build #WS-173.3727.69, built on November 21, 2017) and it's still not work

Edit: i see, the property binding works only for the variable itself. But not for the autocomplete of the definition

e.g. public user: DTOUser

[(ngModel)]="user" --> works
[(ngModel)]="user.firstName" --> does not work

 

0

Can you provide the example where it doesn't work for you? I need files/code snippets plus screenshot

0
Avatar
Permanently deleted user

I've edited my answer

0

well, in you example it's not a property binding, but ngModel value that has to be completed.And it works fine for me:

 

Please can you provide a full sample? What does the property declaration look like?

0
Avatar
Permanently deleted user

it works only after the first letter:

my interface i looking like:

export interface DTOUserSettings {
userId: number | undefined;
setting1: number | undefined;
setting2: number | undefined;
setting3: number | undefined;
setting4: number | undefined;
setting5: number | undefined;
id: number | undefined;
changedDate: Date | undefined;
changedBy: number | undefined;
createdDate: Date | undefined;
createdBy: number | undefined;
}

 

0

can't see how your interface is linked to your template. I was asking for the complete sample

0
Avatar
Permanently deleted user

i've tried to create a sample, but the Problem is in the Sample it works without any Problems. (same angular version same structure) :-/

0

I can't recreate the issue as well... Must be smth specific to your project, but I have no idea what to look at

0
Avatar
Permanently deleted user

Hey so im on the latest RC (downloaded from toolbox), property binding seems to work, however, only the first level works?

example: it can autocomplete: [style]="" , but it cant complete: [style.width]=""

0

Please provide a complete code sample that can be used to recreate the issue

0
Avatar
Permanently deleted user

This dosen't work.

while this does
Any html code would do to recreate the issue, but here:

https://pastebin.com/3RNa4CC7

0

Please vote for https://youtrack.jetbrains.com/issue/WEB-29900 to be notified on any progress with it

0
Avatar
Permanently deleted user

thank you.

0

Please sign in to leave a comment.