简体   繁体   English

如何在网站上使用angularJS w / typescript项目?

[英]How do you get an angularJS w/typescript project to work on a website?

I'm really new to development in general, and I have recently followed through the angular 2.0 tutorial. 总的来说,我真的是开发新手,最近我完成了angular 2.0教程。 What I'm wondering is how I would be able to host say the tutorial project online at github pages. 我想知道的是,我将如何能够在github页面上在线托管本教程项目。 I've tried uploading the project to my repository I created for the github page, but it doesn't seem to work. 我尝试将项目上传到为github页面创建的存储库中,但是似乎无法正常工作。

You can upload and commit an existing file to a GitHub repository. 您可以将现有文件上传并提交到GitHub存储库。 Drag and drop a file to any directory in the file tree, or upload files from the repository's main page. 将文件拖放到文件树中的任何目录,或从存储库的主页上载文件。

  1. On GitHub, navigate to the main page of the repository. 在GitHub上,导航到存储库的主页。
  2. Under your repository name, click Upload files. 在您的存储库名称下,单击上载文件。
  3. Drag and drop the file or folder you'd like to upload to your repository onto the file tree. 将您要上传到存储库的文件或文件夹拖放到文件树上。
  4. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file. 在页面底部,键入简短的,有意义的提交消息,以描述您对该文件所做的更改。
  5. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. 在提交消息字段下方,确定是将提交添加到当前分支还是新分支。 If your current branch is master, you should choose to create a new branch for your commit and then create a pull request. 如果当前分支是master分支,则应选择为提交创建一个新分支,然后创建一个拉取请求。
  6. Click Commit changes. 点击提交更改。

Also recommend using Git Bash: https://git-scm.com/downloads 还建议使用Git Bash: https//git-scm.com/downloads

Here are the procedures for uploading with Git Bash: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 以下是使用Git Bash上传的过程: https : //help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 你如何使用 AngularJS 和 Bootstrap 将 ngTagsInput 导入到你的项目中? - How do you import ngTagsInput into your project with AngularJS and Bootstrap? 在带有 Typescript 的 React.js 中,如何创建还传递另一个参数的 onClick function? - In React.js w/Typescript, how do you create a onClick function that also passes another parameter? 您如何使javascript / jquery正常工作? - How do you get javascript/jquery to work? 如何让 React 项目中的 Emotion 样式组件与 TypeScript 一起使用? - How to get Emotion styled component in a React project to work with TypeScript? 如何在angularJS中获得对指令对象实例的引用? - how do you get a reference to the directive object instance in angularJS? 如何获得模块中定义的angularjs控制器的引用? - How do you get a reference to an angularjs controller defined in a module? 你如何将p5.js带入网站? - How do you get p5.js into a website? 您如何让Google抓取流星JS网站? - How do you get google to crawl a meteor js website? 你如何在网站上获得数字计数(从另一个网站)? - How do you get a number count (from another site) on a website? 如何使用Visual Studio将打字稿网站发布到GitHub页面? - How do you publish a typescript website to GitHub Pages using Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM