GithubHelp home page GithubHelp logo

ericanoronha / read-json-demo-tutorial Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.87 MB

Read JSON in Angular demo: List of Sanrio characters

JavaScript 8.38% HTML 32.60% SCSS 20.94% TypeScript 38.08%

read-json-demo-tutorial's Introduction

Read JSON Demo Tutorial

Demonstration of an Angular application that reads a JSON file, listing Sanrio characters.

This project was generated with Angular CLI version 12.2.10.

Project developed following Read JSON Tutorial.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Errors solved with external help

read-json-demo-tutorial's People

Contributors

ericanoronha avatar yannmjl avatar

Watchers

 avatar

read-json-demo-tutorial's Issues

Importing json file

import myJson from '../file/myJson.json'; // This import style requires "esModuleInterop",

Make sure to add these settings in the compilerOptions section of your tsconfig.json:

"resolveJsonModule": true,
"esModuleInterop": true,

Typescript 2.9.0 has a bug with this JSON feature, it was fixed with 2.9.2
The esModuleInterop is only necessary for the default import of the JSON file. If you leave it set to false then you have to import it with import * as colorsJson from '../file/myJson.json'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.