本文共 1663 字,大约阅读时间需要 5 分钟。
离子赝势文件
This guide will teach you how to write a simple Hello World program in Ionic.
本指南将教您如何在Ionic中编写一个简单的Hello World程序。
Install ionic, npm ,angular and cordova if not installed. [See introduction for more information.]
如果未安装,请安装ionic,npm,angular和cordova。 [有关更多信息,请参见简介。
sudo apt-get install nodejssudo apt-get install npm sudo npm install -g ionic cordova
ionic start helloworld blank
Note: Since this is a small project, enter No or N when prompted during program execution.
注意:由于这是一个小项目,因此在程序执行过程中提示时输入No或N。
cd helloworld
You will see various files and subfolders.
您将看到各种文件和子文件夹。
Don't panic – these files are generated automatically by npm for you. Just go to src
->page
->home
->home.html
.
不要惊慌-这些文件是npm为您自动生成的。 只要到src
- > page
- > home
- > home.html
。
`home.html` is the html page where you can write html syntax.`home.scss` is the css page to write css syntax.`home.ts` is the typescript page to write typescript code.
Ionic Project Hello World
ionic serve
To see your code running go to the browser and and open localhost:8100 in the URL. That's it!
要查看您的代码正在运行,请转到浏览器,然后在URL中打开localhost:8100。 而已!
翻译自:
离子赝势文件
转载地址:http://bfuzd.baihongyu.com/