augury icon indicating copy to clipboard operation
augury copied to clipboard

Cannot see state/properties

Open cdarken opened this issue 9 years ago • 12 comments

Augury version (required): 1.2.12 Angular version (required): 2.4.9 Date: 2017-03-03 OS: Ubuntu 14.04

Description of issue: I cannot see the State section for a component, I can see the properties on load, but then they disappear.

cdarken avatar Mar 03 '17 09:03 cdarken

@cdarken Can you describe a particular component configuration where this occurs? Or point me towards a public repo where it happens?

stevenkampen avatar Mar 03 '17 14:03 stevenkampen

I will try to create a simple project and see if the problem manifests itself in that project too. I will be back with details, I hope tomorrow.

cdarken avatar Mar 03 '17 17:03 cdarken

Augury version: 1.2.12 Windows 7

I am facing same issue: not able to see the state/properties for my components. But I am able to see the material UI component's state. All my components are inside material UI components.

Sample below... mycustom-side-nav have an array property of routes called mainNav. But that is not showing up under states.

<md-sidenav-container>
  <md-sidenav #sidenav mode="side"  opened="true">
    <md-nav-list>
      <mycustom-side-nav></mycustom-side-nav>
    </md-nav-list>
  </md-sidenav>
  <main class="main-content">
    <router-outlet></router-outlet>
  </main>
</md-sidenav-container>
@Component({
  selector: 'mycustom-side-nav',
  templateUrl: 'side-nav.component.html',
  styleUrls: ['./side-nav.component.css']
})
export class MyCustomSideNavComponent implements OnInit {
  public mainNav: Routes = [];
 constructor(private _router: Router) {
 }
 public ngOnInit() {
    // initializations happens here
  }
}

jacobjojan avatar Mar 07 '17 22:03 jacobjojan

Yes, I noticed that the properties for some elements from @angular/material that I'm using are visible, but those for my own components are not. Are there certain conditions needed? I tried to set some of them public, but still no luck. The thing is that they flash momentarily then they disappear.

cdarken avatar Mar 08 '17 21:03 cdarken

+1 I cannot see it in the properties/state panel but I am able to see the object in the chrome console, see below the groups property:

snip20170310_18

In the regular console, same groups property that was printed using console.log(): snip20170310_17

sballarati avatar Mar 10 '17 15:03 sballarati

@sballarati This looks like a separate issue. Do you mind opening a new issue with these details?

stevenkampen avatar Mar 13 '17 11:03 stevenkampen

@jacobjojan Can you provide a more concrete form of that example? I don't think I can replicate just from this code.

stevenkampen avatar Mar 13 '17 14:03 stevenkampen

@stevenkampen I created a new issue for that: https://github.com/rangle/augury/issues/1029

Thanks and have a great weekend!

sballarati avatar Mar 17 '17 21:03 sballarati

@cdarken @jacobjojan I'm pretty sure this is fixed now in 1.5.0 (just released). If you could test it and let me know that would be great.

stevenkampen avatar Mar 29 '17 17:03 stevenkampen

@stevenkampen Thanks, it's working now. I see all my component's properties. There is a strange issue though. In my app I have embedded google maps and I have a property that sets the zoom. If I change that value from Augury to any other value than the one set in my app, it detects the change. If I set it back to exactly the first value it doesn't detect the change. The same with any other property like labels or array values.

cdarken avatar Mar 29 '17 17:03 cdarken

@cdarken Ahh yes that issue still exists I see. For a while I thought it was gone but apparently not. I'll log it now.

Edit: Logged here - #1050

stevenkampen avatar Mar 29 '17 17:03 stevenkampen

Will test and let you know.

Sent from my iPhone

On Mar 29, 2017, at 1:05 PM, Steven Kampen [email protected] wrote:

@jacobjojan I'm pretty sure this is fixed now in 1.5.0 (just released). If you could test it and let me know that would be great.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jacobjojan avatar Mar 29 '17 22:03 jacobjojan