Git Product home page Git Product logo

angular-all's Introduction

Angular All

This project was generated with Angular CLI version 9.1.4.

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.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

In this repo

you can find demos for:

  • how to use font-awesome in angular

  • how to use angular material

  • how to create an input component that supprt tags

  • difference in promise/async/observable

  • create a filter with auto-completion

  • how to use form control

  • how to use material icons

  • update to angular 10:

    ng update @angular/core @angular/cli

    ng update @angular/material

    to update other npm packages: npm update

  • add server side rendering:(useful for SEO and social media site preview), the static homepage will be rendered in sever side and be placed in the tag inside the index.html file. and soon will be replaced by the client app once the bundle has been loaded in the brownser.

    ng add @nguniversal/express-engine --clientProject angular-all then run command in the terminal for production:

    ng build --prod

    ng run angular-all:server:production

    or >> npm run build:ssr for both commands

    npm run serve:ssr

    then go to browser at http://localhost:4000

    for testing run:

    npm run dev:ssr

    then open browser on http://localhost:4200, check the network requst for localhost, it return the full html page.

    The transition from the server-rendered app to the client app happens quickly on a development machine, but you should always test your apps in real-world scenarios.

  • add lazy-loading feature modules:

    ng generate module customers --route customers --module app.module

  • table with rows expandable

  • custom attribute and structure directives

  • more to be added...

angular-all's People

Watchers

James Cloos avatar David Wu avatar

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.