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.

Make view properties public when accessed from view

See original GitHub issue

Access to the private properties hasFocus, isOpen and isBelow from the view breaks production builds with Angular 4.0.0.

ng build --prod

Hash: 33fa67e56c5a1dc77534
Time: 47936ms
chunk    {0} polyfills.5750e9aaa82b99a7b2c4.bundle.js (polyfills) 234 kB {4} [initial] [rendered]
chunk    {1} main.a184c2fc9a7a37a621f7.bundle.js (main) 597 kB {3} [initial] [rendered]
chunk    {2} styles.e3bd7e2b6720dcae1044.bundle.css (styles) 122 bytes {4} [initial] [rendered]
chunk    {3} vendor.a68756e99af931655c91.bundle.js (vendor) 1.66 MB [initial] [rendered]
chunk    {4} inline.b90113427a1816e79dd3.bundle.js (inline) 0 bytes [entry] [rendered]

ERROR in ng:///project/node_modules/ng-select/dist/select.component.d.ts.SelectComponent.html (2,1): Property 'isOpen' is private and only accessible within class 'SelectComponent'.
ng:///project/node_modules/ng-select/dist/select.component.d.ts.SelectComponent.html (2,1): Property 'hasFocus' is private and only accessible within class 'SelectComponent'.
ng:///project/node_modules/ng-select/dist/select.component.d.ts.SelectComponent.html (2,1): Property 'isBelow' is private and only accessible within class 'SelectComponent'.
ng:///project/node_modules/ng-select/dist/select.component.d.ts.SelectComponent.html (41,5): Property 'isOpen' is private and only accessible within class 'SelectComponent'.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
saverettcommented, Mar 28, 2017

@eestein Reverting back to "ng-select": "1.0.0-beta.3" seems to fix the problem for me (until we get a new release with @Crevil’s fix).

1reaction
Crevilcommented, Mar 28, 2017

For the ETA, let’s hear from @basvandenberg, as he is the one managing releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - How to access properties in the model passed to the view?
My question is how to access the field. Is my only option declaring a class and type the model using @model Something?
Read more >
View or change the properties for an Office file
Notes: In Access you'd select View and edit database properties. In Project you'd select Project Information. In Publisher you'd select Publication Properties.
Read more >
Add a new view - Analytics Help - Google Support
Click Admin, and navigate to the account and property to which you want to add the view. In the VIEW column, click the...
Read more >
Private and protected properties and methods
In JavaScript, there are two types of object fields (properties and methods):. Public: accessible from anywhere. They comprise the external ...
Read more >
Accessing private object properties - Undocumented Matlab
Private properties of Matlab class objects can be accessed (read and ... Use DISP or DISPLAY to see the visible public details of...
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