博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
离子赝势文件_如何写“你好,世界!” 在离子
阅读量:2524 次
发布时间:2019-05-11

本文共 1663 字,大约阅读时间需要 5 分钟。

离子赝势文件

This guide will teach you how to write a simple Hello World program in Ionic.

本指南将教您如何在Ionic中编写一个简单的Hello World程序。

步骤1:安装 (Step 1: installation)

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

步骤2:创建一个名为helloworld的文件夹 (Step 2: Create a folder named helloworld)

ionic start helloworld blank

Note: Since this is a small project, enter No or N when prompted during program execution.

注意:由于这是一个小项目,因此在程序执行过程中提示时输入No或N。

步骤3:将目录更改为helloworld [这是您的离子目录] (Step 3: Change directory to helloworld [this is your ionic directory])

cd helloworld

步骤4:在文本编辑器中打开文件夹。 (Step 4: Open the folder in your text editor . )

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

基本文件格式 (Basic File Format)

`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.

步骤6:删除模板并添加html语法,如下所示 (Step 6: Delete the template and add the html syntax as shown below)

Ionic Project

Hello World

步骤7:保存代码并运行 (Step 7: Save the code and run)

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。 而已!

有关Ionic的更多信息: (More info on Ionic:)

翻译自:

离子赝势文件

转载地址:http://bfuzd.baihongyu.com/

你可能感兴趣的文章
memcached Logging
查看>>
敏捷估算扑克
查看>>
MySQL——时间戳和时间的转化
查看>>
sublime text侧边栏
查看>>
c# 事件与委托详解
查看>>
Hibernate配置详细解释
查看>>
Build Android
查看>>
ubuntu使用sqlite3--linux c
查看>>
阿里云免费领取1年.design域名
查看>>
IIS7 IIS8上面运行 ASP
查看>>
7. Reverse Integer
查看>>
1013.开门人和关门人
查看>>
ibatis 多表关联
查看>>
bzoj1133: [POI2009]Kon
查看>>
jquery库实现iframe自适应内容高度和宽度
查看>>
2014年最火的 21个JavaScript 框架
查看>>
自定义的操作Cookie的工具类
查看>>
使用UIActionSheet
查看>>
B.php中读取文件内容的几种方法
查看>>
原生js实现二级联动
查看>>