Coder Social home page Coder Social logo

codecraft-tv / angular-course Goto Github PK

View Code? Open in Web Editor NEW
298.0 16.0 440.0 13.44 MB

Official repository for the Angular: From Theory To Practice Book

Home Page: https://angular.codecraft.tv

License: Other

HTML 4.31% TypeScript 94.84% CSS 0.26% JavaScript 0.58%

angular-course's Introduction

Angular from Theory to Practice

This is the official repository for the Angular course on https://angular.codecraft.tv

  • Each folder is a chapter in the book, ordered by prefix number.
  • Each chapter has a subfolder for each lecture, again ordered by prefix number.
  • Each lecture has an index.adoc file which contains the content for that lecture.
  • Each lecture folder may also contain code and images folders which contain any code or images needed to support that lecture.

Contributions

Any contributions you make to this effort are greatly appreciated, from a typo to a code change.

Contributors added to the CONTRIBUTORS.adoc will be added to the published book on Amazon the next time it's released (changes are not pushed in real-time to Amazon).

License & Copyright

The materials herein are all © 2016-2019 Asim Hussain.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License

angular-course's People

Contributors

alicexinyun avatar amolgaikwad110 avatar anwaramusa avatar beno922 avatar carlosnunezusa avatar david-russo avatar felipeloyola avatar followmyutopia avatar ghraken avatar habeeb-mohamed avatar hearen avatar jawache avatar kjivan avatar marqueslu avatar nakul5harma avatar pradeepmay31 avatar prime417 avatar reinagliryc avatar scottf22 avatar shant24k avatar tamilsweet avatar vageeshjoshi avatar wandbferreira avatar zurc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-course's Issues

Found a mistake in your Pipe activity solution.

Line 13 should be:
text = text.replace(new RegExp(\\b${word}\\b, "gi"), "$%#@!");

otherwise if the input is
"Hell, hell, what the hello hell hello" will only get the second "hell" replaced.

Unit testing http

When I replace the search method with a simple getAll method e.g.
getUsers(term:string) { let apiURL = ${this.apiRoot}?term=${term}&media=music&limit=20; return this.http.get<[]>(this.apiURL);

and call
getUsers('U2')

the test fails with no matching url.

Other similar code on the web will pass, but then the test expect(service.results.length).toBe(1+X);
will not fail.

Any ideas appreciated.

Loading libraries in the global scope in the angular.json file

Description

In the Angular CLI chapter on the section of Global Library Installation, the path provided when loading the libraries in the node_modules directory may not be correct.

Error

The path provided looks like this '../node_modules/bootstrap/dist/css/bootstrap.css'.

Correction

The path should resemble this './node_modules/bootstrap/dist/css/bootstrap.css'

Source

https://github.com/codecraft-tv/angular-course/blob/current/3.angular-cli/1.overview/index.adoc

Update RxJS Activity content

Point to better/latest links to docs.
Point to distinctUntilKeyChanged instead of distinctUntilChanged
Be clearer about the goal, the activity blitz just has a single TODO.

Unhandled promise rejection in Quick Start - Domain Model

Came across below error on domain model chapter, could you pls take a look.

Unhandled Promise rejection: Unexpected value 'JokeListComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation. ; Zone: ; Task: null ; Value: Error: Unexpected value 'JokeListComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation.
at syntaxError (util.ts:100)
at eval (metadata_resolver.ts:620)
at Array.forEach ()
at CompileMetadataResolver.getNgModuleMetadata (metadata_resolver.ts:600)
at JitCompiler.loadModules (compiler.ts:127)
at JitCompiler.compileModuleAndComponents (compiler.ts:107)
at JitCompiler.compileModuleAsync (compiler.ts:61)
at CompilerImpl.compileModuleAsync (compiler_factory.ts:57)
at compileNgModuleFactory__PRE_R3
(application_ref.ts:43)
at PlatformRef.bootstrapModule (application_ref.ts:262) Error: Unexpected value 'JokeListComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation.
at syntaxError (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:2500:21)
at eval (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:18757:44)
at Array.forEach ()
at CompileMetadataResolver.getNgModuleMetadata (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:18739:58)
at JitCompiler.loadModules (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:26085:55)
at JitCompiler.compileModuleAndComponents (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:26066:40)
at JitCompiler.compileModuleAsync (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/compiler.umd.js:26026:41)
at CompilerImpl.compileModuleAsync (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/platform-browser-dynamic.umd.js:202:35)
at compileNgModuleFactory__PRE_R3
(https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:17664:25)
at PlatformRef.bootstrapModule (https://github-g2mxbh.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:17847:20)

code and video mismatch

in the code https://github.com/codecraft-tv/angular-course/blob/current/5.built-in-directives/2.ngfor/code/src/main.ts#L40
*ngfor is on ul element for GroupByCountry example, and <li> is only wrapping the country name. there is an extra empty line after the inner ul displayed., which is after each country. (I don't know why <ul> element has to have an extra line though, can you show me?)

However, in the video https://codecraft.tv/courses/angular/built-in-directives/ngfor/
the *ngfor is on li element and the inner ul element is wrapped as part of the <li>
there is no extra empty line between each <li>, or say each country.

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.