官术网_书友最值得收藏!

The browser developer tools setup

Before we proceed further, I would recommend setting up the developer tools in your browser in the following format.

Google Chrome

Once the Ionic app is launched, open the developer tools by pressing Cmd + Opt + I on Mac and Ctrl + Shift + I on Windows/Linux. Then click on the last but one icon in the top row, next to the close button as seen in the following screenshot:

This will dock developer tools to the side of the current page. Drag the demarcation line between the browser and the developer tools till you see the view becoming similar to a mobile.

If you click on the Elements tab in the developer tools, you can easily inspect the page and see the output in one go, as shown in the following screenshot:

This view is very helpful for fixing errors and debugging issues.

Mozilla Firefox

If you are a Mozilla Firefox fan, you can achieve the same result as above as well. Once the Ionic app is launched, open developer tools (not Firebug, Firefox's native development tools) by pressing Cmd + Opt + I on Mac and Ctrl + Shift + I on Windows/Linux. Then click on the Dock to side of browser window icon, as shown in the following screenshot:

Now, you can drag the demarcation line to achieve the same result as we have seen in Chrome:

主站蜘蛛池模板: 丽江市| 白水县| 安乡县| 宜阳县| 凤凰县| 韶山市| 湖北省| 休宁县| 文化| 郎溪县| 枞阳县| 巩留县| 全椒县| 英吉沙县| 陆丰市| 无为县| 河间市| 平舆县| 荃湾区| 扶沟县| 芷江| 南皮县| 渝中区| 南投市| 二连浩特市| 昌黎县| 乌拉特中旗| 友谊县| 岳阳县| 那曲县| 阿拉尔市| 新巴尔虎右旗| 十堰市| 麻城市| 称多县| 铁岭县| 友谊县| 射阳县| 顺昌县| 万荣县| 长治市|