DZone
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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Frameworks
  4. 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 · Opinion
Like (3)
Save
Tweet
Share
11.55K 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

  • Beginners’ Guide to Run a Linux Server Securely
  • Fraud Detection With Apache Kafka, KSQL, and Apache Flink
  • AIOps Being Powered by Robotic Data Automation
  • 2023 Software Testing Trends: A Look Ahead at the Industry's Future

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • 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: