SlideShare a Scribd company logo
Building a Website With
Angular
JOE JORDEN
@COBALTCODER WWW.COBALTCODER.COM
Why Are We Here?
 Learn to use various parts of Angular:
 Modules
 Components
 Templates
 Directives
 Services
 Pipes
 Custom Configuration
 Chrome Debugging
 Elements (time permitting)
Modules
 Cohesive block of code
 declarations - the view classes that belong to this module.
 Three kinds of view classes: components, directives, and pipes.
 exports - the subset of declarations made visible to other modules.
 imports - declares exports from other modules for use in the current module.
 providers - list of services that this module contributes to the global collection of
services; they become accessible in all parts of the app.
 bootstrap - the main application view, called the root component, that hosts all other
app views.
Demo - Modules
 Show app module
Components
 A component controls a section of the screen called a view.
 Component's application logic defined in a class.
 Class interacts with the view through an API.
Demo – Components
 Show existing components
Templates
 A form of HTML that tells Angular how to render the component.
 Looks like HTML with some subtle differences
 handlebars {{}}
 bindings
 Attribute: []
 Event: ()
 Two-way data: [()]
Demo – Templates
 Show existing templates
Directives
 A directive is a class that modifies the DOM.
 Decorated with @Directive
 When Angular renders a template, it transforms the DOM according to the
instructions given by directives.
 Some built-in directives
 *ngFor (structural directive)
 *ngIf (structural directive)
 ngModel (attribute directive)
 Can build custom directives
Demo - Directives
 Show *ngFor, *ngIf, ngModel in templates
 CountDown directive
Services
 Used to share information and methods between components
 Angular has no formal definition of a service
 Make it @Injectable for dependency injection
Demo - Services
 Show existing services
Pipes
 Used to modify output in a template
 Built-in pipes (https://angular.io/api?type=pipe)
 DatePipe
 CurrencyPipe
 DecimalPipe
 PercentPipe
 LowerCasePipe
 UpperCasePipe
 TitleCasePipe
 Pipes can be chained
 Can build custom pipes
Pipe Parameters
 Can send parameters using :
 I.E. <p>The client's anniversary is {{ anniversary | date:"MM/dd/yy" }} </p>
Demo - Pipes
 Show existing pipes
Using Custom Configuration
 Custom json files
 Access with custom class
Demo – Configuration
 Show custom configuration implementation
Debugging in Chrome
 Install extension
 Configure Launch.json
Demo – Debugging
 Show debugging in Chrome
Elements
 Custom elements that house the Angular component
 Self-bootstrapping
 Can be surfaced in other frameworks (e.g. React, Vue, Preact, etc.)
Demo - Elements
 Show elements
Summary
 Modules
 Components
 Templates
 Directives
 Services
 Pipes
 Custom Configuration
 Chrome Debugging
 Elements
References
 Code: https://github.com/CobaltCoder/CodeCamp2018
 SlideShare: https://www.slideshare.net/CobaltCoder/building-a-website-with-angular-2-80621227
 Blog: http://www.cobaltcoder.com
 In depth tutorial: http://www.angular.io

More Related Content

PPTX
Building a website with angular 2
PPTX
PPTX
Angular 4 and TypeScript
PPTX
Angular4 getting started
ODP
Angular2
PPTX
What’s new in Visual Studio 2010
PPT
Angular App Presentation
PDF
Angular genericforms2
Building a website with angular 2
Angular 4 and TypeScript
Angular4 getting started
Angular2
What’s new in Visual Studio 2010
Angular App Presentation
Angular genericforms2

What's hot (16)

PDF
Introduction To Angular 4 - J2I
PDF
はじめてのAngular2
ODP
Routing
PPTX
Mule
PDF
Introduction to Unit Tests and TDD
PPTX
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
PDF
Angular 4 for Java Developers
ODP
Development of forms editors based on Ecore metamodels
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PPTX
VS Saturday 2019 - Xamarin.Forms 4.x
PPT
Server side scripts
PDF
Angular server side rendering - Strategies & Technics
PDF
Automake
PPTX
Backward Compatibility Developer's Guide in Magento 2
PPTX
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
ODP
Oro Workflows
Introduction To Angular 4 - J2I
はじめてのAngular2
Routing
Mule
Introduction to Unit Tests and TDD
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
Angular 4 for Java Developers
Development of forms editors based on Ecore metamodels
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
VS Saturday 2019 - Xamarin.Forms 4.x
Server side scripts
Angular server side rendering - Strategies & Technics
Automake
Backward Compatibility Developer's Guide in Magento 2
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
Oro Workflows
Ad

Similar to Building a website with angular (20)

PPTX
Angular 9
PPTX
Angular Basics.pptx
PDF
AngularJS: Overview & Key Features
PPTX
Angular js workshop
PPTX
Angular from Zero to Mastery - Training (Intermediate)
PPTX
Angular 2.0
PDF
Building Blocks of Angular 2 and ASP.NET Core
PPTX
Introduction to single page application with angular js
PPTX
Single Page Applications in SharePoint with Angular
PPTX
angularJs Workshop
PPTX
Angular patterns
PPTX
AngularJs Workshop SDP December 28th 2014
PPTX
Services Factory Provider Value Constant - AngularJS
DOCX
Angular Interview Questions & Answers
PPTX
Angular Framework ppt for beginners and advanced
PDF
Angular - Chapter 3 - Components
PPTX
Angular interview questions
PPTX
Understanding angular js
PPTX
AngularJS Fundamentals + WebAPI
Angular 9
Angular Basics.pptx
AngularJS: Overview & Key Features
Angular js workshop
Angular from Zero to Mastery - Training (Intermediate)
Angular 2.0
Building Blocks of Angular 2 and ASP.NET Core
Introduction to single page application with angular js
Single Page Applications in SharePoint with Angular
angularJs Workshop
Angular patterns
AngularJs Workshop SDP December 28th 2014
Services Factory Provider Value Constant - AngularJS
Angular Interview Questions & Answers
Angular Framework ppt for beginners and advanced
Angular - Chapter 3 - Components
Angular interview questions
Understanding angular js
AngularJS Fundamentals + WebAPI
Ad

Recently uploaded (20)

PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
Operating system designcfffgfgggggggvggggggggg
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
AutoCAD Professional Crack 2025 With License Key
PPTX
assetexplorer- product-overview - presentation
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PDF
iTop VPN Crack Latest Version Full Key 2025
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025
Why Generative AI is the Future of Content, Code & Creativity?
Download FL Studio Crack Latest version 2025 ?
Operating system designcfffgfgggggggvggggggggg
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
17 Powerful Integrations Your Next-Gen MLM Software Needs
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Patient Appointment Booking in Odoo with online payment
Odoo Companies in India – Driving Business Transformation.pdf
Autodesk AutoCAD Crack Free Download 2025
AutoCAD Professional Crack 2025 With License Key
assetexplorer- product-overview - presentation
Reimagine Home Health with the Power of Agentic AI​
Computer Software and OS of computer science of grade 11.pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
iTop VPN Crack Latest Version Full Key 2025
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025

Building a website with angular

  • 1. Building a Website With Angular JOE JORDEN @COBALTCODER WWW.COBALTCODER.COM
  • 2. Why Are We Here?  Learn to use various parts of Angular:  Modules  Components  Templates  Directives  Services  Pipes  Custom Configuration  Chrome Debugging  Elements (time permitting)
  • 3. Modules  Cohesive block of code  declarations - the view classes that belong to this module.  Three kinds of view classes: components, directives, and pipes.  exports - the subset of declarations made visible to other modules.  imports - declares exports from other modules for use in the current module.  providers - list of services that this module contributes to the global collection of services; they become accessible in all parts of the app.  bootstrap - the main application view, called the root component, that hosts all other app views.
  • 4. Demo - Modules  Show app module
  • 5. Components  A component controls a section of the screen called a view.  Component's application logic defined in a class.  Class interacts with the view through an API.
  • 6. Demo – Components  Show existing components
  • 7. Templates  A form of HTML that tells Angular how to render the component.  Looks like HTML with some subtle differences  handlebars {{}}  bindings  Attribute: []  Event: ()  Two-way data: [()]
  • 8. Demo – Templates  Show existing templates
  • 9. Directives  A directive is a class that modifies the DOM.  Decorated with @Directive  When Angular renders a template, it transforms the DOM according to the instructions given by directives.  Some built-in directives  *ngFor (structural directive)  *ngIf (structural directive)  ngModel (attribute directive)  Can build custom directives
  • 10. Demo - Directives  Show *ngFor, *ngIf, ngModel in templates  CountDown directive
  • 11. Services  Used to share information and methods between components  Angular has no formal definition of a service  Make it @Injectable for dependency injection
  • 12. Demo - Services  Show existing services
  • 13. Pipes  Used to modify output in a template  Built-in pipes (https://angular.io/api?type=pipe)  DatePipe  CurrencyPipe  DecimalPipe  PercentPipe  LowerCasePipe  UpperCasePipe  TitleCasePipe  Pipes can be chained  Can build custom pipes
  • 14. Pipe Parameters  Can send parameters using :  I.E. <p>The client's anniversary is {{ anniversary | date:"MM/dd/yy" }} </p>
  • 15. Demo - Pipes  Show existing pipes
  • 16. Using Custom Configuration  Custom json files  Access with custom class
  • 17. Demo – Configuration  Show custom configuration implementation
  • 18. Debugging in Chrome  Install extension  Configure Launch.json
  • 19. Demo – Debugging  Show debugging in Chrome
  • 20. Elements  Custom elements that house the Angular component  Self-bootstrapping  Can be surfaced in other frameworks (e.g. React, Vue, Preact, etc.)
  • 21. Demo - Elements  Show elements
  • 22. Summary  Modules  Components  Templates  Directives  Services  Pipes  Custom Configuration  Chrome Debugging  Elements
  • 23. References  Code: https://github.com/CobaltCoder/CodeCamp2018  SlideShare: https://www.slideshare.net/CobaltCoder/building-a-website-with-angular-2-80621227  Blog: http://www.cobaltcoder.com  In depth tutorial: http://www.angular.io