当前位置: 首页 > news >正文

东莞网站公司建设网站中国防疫政策马上要变化了

东莞网站公司建设网站,中国防疫政策马上要变化了,北京海淀区,邯郸论坛官网Angulai 是google 公司开发的前端开发框架。Angular 使用 typescript 作为编程语言。typescript 是Javascript 的一个超集#xff0c;提升了某些功能。本文介绍运行我的第一个angular 程序。 前面部分参考#xff1a; Angular TypeScript Tutorial in Visual Studio Code 一…Angulai 是google 公司开发的前端开发框架。Angular 使用 typescript 作为编程语言。typescript 是Javascript 的一个超集提升了某些功能。本文介绍运行我的第一个angular 程序。 前面部分参考 Angular TypeScript Tutorial in Visual Studio Code 一安装angular 的前提是安装好了node.js。 我在visual code 下的node.js的hello world-CSDN博客 这个文章中介绍了怎么安装。 检查的方法是 node -v 能显示node  的版本。 二安装angular cli 的方法是终端输入下面命令 npm install -g angular/cli 三建立angular 应用的方法是 ng new my-app my-app 是应用工程的目录。ng new 命令执行是会问你stylesheet format 直接回车选择缺省的也可以用箭头选择然后回车选定。我建立的目录是 myfirst执行过程如下 C:\Users\leoncd \angular C:\angularng new myfirst ? Would you like to add Angular routing? Yes ? Which stylesheet format would you like to use? SCSS   [ https://sass-lang.com/documentation/syntax#scss  ] CREATE myfirst/angular.json (2879 bytes) CREATE myfirst/package.json (1038 bytes) CREATE myfirst/README.md (1061 bytes) CREATE myfirst/tsconfig.json (901 bytes) CREATE myfirst/.editorconfig (274 bytes) CREATE myfirst/.gitignore (548 bytes) CREATE myfirst/tsconfig.app.json (263 bytes) CREATE myfirst/tsconfig.spec.json (273 bytes) CREATE myfirst/.vscode/extensions.json (130 bytes) CREATE myfirst/.vscode/launch.json (470 bytes) CREATE myfirst/.vscode/tasks.json (938 bytes) CREATE myfirst/src/main.ts (214 bytes) CREATE myfirst/src/favicon.ico (948 bytes) CREATE myfirst/src/index.html (293 bytes) CREATE myfirst/src/styles.scss (80 bytes) CREATE myfirst/src/app/app-routing.module.ts (245 bytes) CREATE myfirst/src/app/app.module.ts (393 bytes) CREATE myfirst/src/app/app.component.html (23115 bytes) CREATE myfirst/src/app/app.component.spec.ts (994 bytes) CREATE myfirst/src/app/app.component.ts (212 bytes) CREATE myfirst/src/app/app.component.scss (0 bytes) CREATE myfirst/src/assets/.gitkeep (0 bytes) √ Packages installed successfully. ... 四运行angular 的方法是转到工程目录然后 ng serve 启动 ng serve 然后在浏览器中  http://localhost:4200  就可以看到你启动的工程了。 我的操作过程如下 C:\angularcd myfirst C:\angular\myfirstng server Error: Unknown command. Did you mean serve? C:\angular\myfirstng serve ? Would you like to share pseudonymous usage data about this project with the Angular Team at Google under Googles Privacy Policy at https://policies.google.com/privacy. For more details and how to change this setting, see https://angular.io/analytics. No Global setting: enabled Local setting: disabled Effective status: disabled √ Browser application bundle generation complete. Initial Chunk Files   | Names         |  Raw Size vendor.js             | vendor        |   2.35 MB | polyfills.js          | polyfills     | 333.17 kB | styles.css, styles.js | styles        | 230.91 kB | main.js               | main          |  48.73 kB | runtime.js            | runtime       |   6.51 kB | | Initial Total |   2.95 MB Build at: 2023-09-30T00:12:18.385Z - Hash: 0dce8cec7daf64de - Time: 16863ms ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** √ Compiled successfully. √ Browser application bundle generation complete. 打开浏览器界面如下 五查看工程内容 打开另一个终端 cd my-app code .启动vscode或者直接启动vscode 然后转到工程目录下 介绍部分参考https://www.simplilearn.com/tutorials/angular-tutorial/angular-hello-world Root HTML - index.html The Entry Point - main.ts Main Module - app.module.ts Root Component - AppComponent: app.component.ts 这个文件中把 myproject   修改为 Hello World 并保存浏览器界面里显示 hello world app is running 介绍到此看上去要学会angular 还有点难。
http://www.hkea.cn/news/14532009/

相关文章:

  • 上海市虹口市容建设公司网站迁安网站建设
  • 网页设计与网站建设pdf环保主题的网站模板
  • 嘉定网站网站建设做网站运营公司收费
  • 个人网站模板下载自己做的公司网站百度搜不到
  • 360网站怎么做链接做网站需要什么框架
  • 单页营销型网站建设wordpress下载类模板下载
  • 做电影ppt模板下载网站网站和网页的设计原则
  • 表单大师做网站网站开发报价单明细
  • 做一个谷歌网站多少钱金蝶官网首页
  • js特效演示网站wordpress开启2级域名
  • 昆明著名网站建设信息技术制作网站
  • 网站引导页作用网络应用程序方案设计
  • 网站备案是域名还是空间西宁市城中区建设局网站
  • 网站建设有什么服务Wordpress建站用什么系统
  • 电商网站排名在 wordpress 本地安装 wordpress
  • 专业广州做网站公司网站 页面 结构
  • 网站建设 试题厦门零基础学seo
  • 企业网站有哪些内容男女直接做免费的网站
  • python怎么搭建网站婚庆手机版网站建设
  • 江苏省住房和城乡建设局网站IP网站登记
  • 汕头企业网站建设设计tklink的登录做网站
  • 现在可以做网站么额敏网站建设
  • 苏州公司建站有没有做美食的小视频网站
  • 绥中做网站网站怎么做视频
  • 做网站设计需要哪些软件小学网站模板下载
  • 深圳网站制作公司方案深圳华强北最新消息
  • 深圳建设网站推荐网络维护方案
  • 运城门户网站建设江苏做网站公司排名
  • 吴忠住房和城乡建设网站西安手机网站案例
  • 安徽六安瓜片是什么茶网站关键词优化技巧