# Angular 7 - Flag Icon CSS

![Angular 7 - Flag Icon CSS](https://3664850746-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LOwWulv1WImTywA9fkU%2F-LOxINQXy5XKHH8isUrG%2F-LOxIRNv0iPpZwMNTdBs%2FA7-FlagIconCss.png?alt=media\&token=7c0207bb-1b40-4e84-8956-90f10c9f338e)

🎬Video version: <https://www.youtube.com/watch?v=JnX6hgWNnb8>

## Step 0 <a href="#step-0" id="step-0"></a>

**Installing angular-cli**

> *Note*: you can skip this part if you already have application generated

```
sudo npm i -g @angular/cli@next
ng new angular7app
cd angular7app
```

## Step 1 <a href="#step-1" id="step-1"></a>

* Install `flag-icon-css`

```
  npm install flag-icon-css --save
```

## Step 2 <a href="#step-2" id="step-2"></a>

* Open `angular.json` and insert a new entry into the styles array:

```
      "styles": [        
            "node_modules/flag-icon-css/css/flag-icon.min.css", 
            "styles.css",      
       ],
```

## Step 3 <a href="#step-4" id="step-4"></a>

* Open `src/app/app.component.html` and add:

```
<span class="flag-icon flag-icon-gr"></span>
```

## Step 4  <a href="#step-5" id="step-5"></a>

* Launch the application:

```
ng serve -o
```

![](https://3664850746-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LOwWulv1WImTywA9fkU%2F-LOxNt9OBNl5lVZPGrEC%2F-LOxO-WfesFqO_rJcG-B%2FScreenshot%202018-10-16_10-59-21.png?alt=media\&token=cbf408ed-2d5e-4302-ac79-84d2ee4d27e3)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://angularactivity.gitbook.io/project/angular-7-flag-icon-css.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
