Capturing Page Source (HTML Snapshot) After Angular Templating

后端 未结 6 974
栀梦
栀梦 2020-12-29 05:58

Quick angular.js question...

If I have a webpage with content like this:

{{message}}

And I

6条回答
  •  萌比男神i
    2020-12-29 06:43

    There is no way to "view source" in the traditional sense and see HTML modified by Angular. That's because view source will show the source from the server and Angular is only making changes to the markup already loaded from the server.

    What you want to do is use Chrome's inspector (F12) or FireBug (maybe? does that still exist) in FireFox. Chrome's inspector and FireBug will show you the "active" source, or how the HTML looks at the time you're viewing it.

提交回复
热议问题