DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Angular - SPA in 10 Minutes

Angular - SPA in 10 Minutes

Create a beginning Angular application in 10 minutes.

Suresh Natarajan user avatar by
Suresh Natarajan
·
Aug. 16, 19 · Web Dev Zone · Opinion
Like (2)
Save
Tweet
11.44K Views

Join the DZone community and get the full member experience.

Join For Free

Angular 

Before we start, let's understand the common terminologies used in a typical Angular application (https://angular.io/).

Disclaimer: The Angular version that is referenced in this article is Angular 7.

Pre-Requisites:

S.No

Name

Remarks

1

Node.js

Compilation/transformation is done by Node.js and npm during the development phase. Hence, Node.js and npm are pre-requisites for the development environment

2

NPM

Compilation/transformation is done by Node.js and npm during the development phase. Hence, Node.js and npm are pre-requisite for the development environment

3

Typescript

Coding in Angular is based on TypeScript. Hence, knowing TypeScript is mandatory.

4

ECMA Script

Ecma script is a scripting language specification that is standardized by ECMA international.

5

Karma.js

Karma is essentially a tool that spawns a web server that executes source code against test code for each of the browsers connected. It is ideal for writing and running unit tests while developing the application.

6

Jasmine

Simple JavaScript testing framework for browsers and node.js.

7

Protractor

Protractor is an end-to-end test framework for Angular.

8

package.json

Mainly describes the dependent node modules that is required for the application.

9

Webpack

Webpack is a tool for bundling application source code. Webpack takes modules with dependencies and generates static assets representing those modules.

10

angular.json

Configuration file for Angular CLI. Specifies the dependent scripts, style sheet location and many other options.

Command Line Interface Commands

npm -v 

node -v

ng -v

ng new <<app-name>>

ng build --configuration --prod

ng serve --configuration --prod


After ng serve, open your browser and type http://localhost:4200. That's it. You have created a simple single page application.

This is the creenshot captured after the creation of the new project using Angular CLI with a split window. 

Beginning Angular application

Common Terminologies Used in Angular App

  • Component ====> ng g c <<name of the component>>.

  • Module       ====> ng g m <<name of the module>>.

  • Service       ====> ng g s <<name of the service>>.

  • Routing      ====> Routing components within the app.

This is all that is needed to kick start a simple Angular app in 10 minutes.

Let's learn about individual terminologies deeper in upcoming articles.

AngularJS

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Workout Tracking With Your App in the Background
  • 10 Best Infrastructure-as-Code Tools for Automating Deployments in 2022
  • Build a Java Microservice With AuraDB Free
  • Everything You Need to Know About Web Pentesting: A Complete Guide

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo