📕
Knowledge
  • Knowledge Repository
  • Java
    • Intro
    • Persistence
      • Java Persistence API (JPA)
        • Entity Manager
        • Transaction Management
        • Relationship Mapping
      • Java Transaction API (JTA)
    • Resources
  • Angular
    • Intro
    • Overview
    • CLI Commands
    • Directives
  • Tools
    • IDEs
      • IntelliJ
        • Shortcuts
  • Book Notes
    • Intro
    • Java A Beginner's Guide
      • Chapter 1. Java Fundamentals
      • Chapter 2. Data Types and Operators
      • Chapter 3. Program Control Statements
      • Chapter 4. Introducing Classes, Objects, and Methods
      • Chapter 5. More Data Types & Operators
      • Chapter 6. Closer Look At Methods and Classes
      • Chapter 7. Inheritance
      • Chapter 8. Packages & Interfaces
      • Chapter 9. Exception Handling
      • Chapter 10. Using I/O
    • Data Pipelines With Airflow
      • Chapter 1. Meet Airflow
      • Chapter 2. Anatomy Of a DAG
  • Course Notes
    • Intro
    • Spring: TDD With JUnit
Powered by GitBook
On this page
  • *ngFor
  • *ngIf

Was this helpful?

  1. Angular

Directives

*ngFor

Used to loop around objects to display data. *ngFor is a repeater directive.

<li *ngFor="let data of object">

*ngIf

*ngIf is a structural directive that is used to conditionally display information if a certain condition is true. If true, the data is pushed into the DOM or removed from the DOM if the condition is false.

<div *ngIf="dataAvailable">
    // show content contained between div elements.
PreviousCLI CommandsNextIDEs

Last updated 3 years ago

Was this helpful?