ionic框架+angular开发项目

ionic框架组件地址:https://ionicframework.com/docs/api/tab

ionic文档地址:https://ionicframework.com/docs/angular/your-first-app/ios-android-camera

tab切换https://ionicframework.com/docs/api/segment 

tab切换中文地址:http://www.ionic.wang/components_doc-index-id-309.html#usage

我们可以在 Ionic 开发框架下使用 NG-ZORRO-MOBILE  http://ng.mobile.ant.design/#/docs/running-in-ionic/zh

第一步:安装ionic   npm install -g ionic

第二步:新建我的项目myApp     ionic start myApp tabs

第三步:进入我的新建好的项目myApp      cd myApp

第四步:运行服务 ionic serve  

第五步:给我的项目引入外部js

(1):进入项目目录,下载jquery

 npm install --save jquery

(2)第二步:进入项目目录,下载jqurey

npm install @types/jquery --save

(3)第三步:前两步成功的话,会在package.json文件中多处这两行

"@types/jquery":"^3.3.31",

"jquery":"^3.4.1",

(4):在需要使用jquery的地方引用就好了

 
原文地址:https://www.cnblogs.com/lynna/p/11995024.html