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

  • Learning Ionic
  • Arvind Ravulavaru
  • 236字
  • 2021-07-16 13:40:55

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:

主站蜘蛛池模板: 塘沽区| 西贡区| 大厂| 洮南市| 玉溪市| 大渡口区| 永德县| 沾化县| 若尔盖县| 漳浦县| 崇文区| 潮安县| 孟村| 乌拉特前旗| 静乐县| 永定县| 马尔康县| 离岛区| 辉南县| 宁国市| 邵阳县| 河源市| 天门市| 西青区| 长宁区| 合肥市| 青岛市| 顺昌县| 曲沃县| 疏附县| 佛坪县| 扎囊县| 孝昌县| 新巴尔虎右旗| 永顺县| 商城县| 泰和县| 汾西县| 颍上县| 栾城县| 清涧县|