Angular-GettingStarted

Sample Angular application used in the "Angular: Getting Started" course: http://bit.ly/Angular-GettingStarted

  • 所有者: DeborahK/Angular-GettingStarted
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Angular-Getting Started

Materials for the "Angular: Getting Started" course on Pluralsight.

APM-Start: The starter files set up for use in VSCode, WebStorm, or other editors. Use this to code along with the course. (Updated for Angular version 8 or higher)

APM-Final: The completed files. Use this to see the completed solution from the course. (Updated for Angular version 8 or higher)

See the README.md file under each folder for details on installing and running the application.

If you have any problems installing or running this code, please see the "Angular: Getting Started Problem Solver"

If that does not resolve your issue, please post to the discussion board for the course

NOTE: The installation was tested using node v10.16.0 and npm 6.9.0.

INSTALLING THE CODE

The following are detailed instructions for installing the code so you can code along with the course.

  1. Ensure you have node installed.

    At a command prompt, type node -v to ensure you have version 10.16.0 or higher before proceeding.

  2. Download or clone the code from this repository.

    If you download as a zip file, be sure to unzip it.

  3. Navigate to the APM-Start folder (or APM folder if you renamed it).

    There should be a package.json file in this folder.

  4. In a command window (or the Command prompt in VS Code), type npm install.

    This creates a node_modules folder and installs all packages from the package.json file into that folder. You may see a few warnings during this process, but you should not see any errors.

  5. In the same command window (or the Command property in VS Code), type npm start.

    The application should then compile and launch in your default browser.

If these steps don't work for you, see STACKBLITZ below.

STACKBLITZ

If you want to work through the course without downloading npm or any of the libraries, try the course with Stackblitz by following this link: https://stackblitz.com/github/DeborahK/Angular-GettingStarted/tree/master/APM-Start

Stackblitz does not support reading json files from a folder defined in the angular.json file. Rather, you need to copy the products folder from the api folder to the assets folder. Then modify the productUrl to look in the assets folder: private productUrl = 'assets/products/products.json';

To install packages in Stackblitz, such as bootstrap and font-awesome, you need to use the DEPENDENCIES branch in the Project hierarchy to the left of the code in Stackblitz:

  1. Open the DEPENDENCIES node. (You should see the list of existing dependencies such as @angular/common
  2. Below the list of dependencies is an input box with the text "enter package name"
  3. Enter bootstrap there and press enter.
  4. If it asks you to install missing dependencies, click "INSTALL MISSING DEPENDENCIES"
  5. Repeat step 3 with font-awesome

Stackblitz does not seem to recognize the Font Awesome icons. So you will instead see portions of squares.

Stackbliz has the Angular CLI commands built in. Instead of installing the Angular CLI to your system, right-click on a folder in Stackblitz and you'll see an "Angular Generator" option. Under that menu you'll find the Angular CLI commands.

主要指标

概览
名称与所有者DeborahK/Angular-GettingStarted
主编程语言TypeScript
编程语言CSS (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2016-02-16 02:56:05
推送于2024-02-06 16:47:28
最后一次提交2024-02-06 08:47:28
发布数0
用户参与
星数2.6k
关注者数275
派生数4k
提交数265
已启用问题?
问题数112
打开的问题数3
拉请求数5
打开的拉请求数0
关闭的拉请求数60
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?