how to access Angular2 component specific data in console?

后端 未结 4 1320
萌比男神i
萌比男神i 2020-11-30 02:54

Is there any way to access Angular2 specific component specific data in console, for debugging purpose?

Like Angular1 has capability to access its components value i

4条回答
  •  北海茫月
    2020-11-30 03:28

    I'm surprised that no one has mentioned Augury here, it's a Chrome plugin that gives you convenient access to all the information in your components, and also makes it easier to see that information in the console directly:

    https://augury.rangle.io/

提交回复
热议问题