Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 18 2019 13:00

    JohannesHoppe on master

    sorry, it's EMPTY ^_^ share makes observables hot async pipe! (compare)

  • Jan 18 2019 12:22

    JohannesHoppe on master

    catchError(() => empty() (compare)

  • Jan 18 2019 12:19

    JohannesHoppe on master

    rxjs building blocks error handling with of() (compare)

  • Jan 18 2019 09:24

    JohannesHoppe on master

    warning: evil rxjs anti pattern… rxjs: creation function (compare)

  • Jan 18 2019 08:00

    JohannesHoppe on master

    proof that there is no leak whe… (compare)

  • Jan 17 2019 16:03

    JohannesHoppe on master

    routing (compare)

  • Jan 17 2019 13:20

    JohannesHoppe on master

    submitting forms and handling e… (compare)

  • Jan 17 2019 12:56

    JohannesHoppe on master

    TODO: buch zum array hinzufügen (compare)

  • Jan 17 2019 09:52

    JohannesHoppe on master

    ng e2e examples (compare)

  • Jan 17 2019 09:36

    JohannesHoppe on master

    testing bindings (compare)

  • Jan 17 2019 09:19

    JohannesHoppe on master

    testing behaviour (compare)

  • Jan 17 2019 08:53

    JohannesHoppe on master

    show stars (compare)

  • Jan 16 2019 16:12

    JohannesHoppe on master

    implemented sorting fixing all tests (compare)

  • Jan 16 2019 14:50

    JohannesHoppe on master

    hands on: updateAndSort! (compare)

  • Jan 16 2019 13:33

    JohannesHoppe on master

    my first TDD (compare)

  • Jan 16 2019 10:09

    JohannesHoppe on master

    hands-on: changing colors with … styling with bootstrap (and wor… refactoring to modules (compare)

  • Jan 15 2019 21:54

    JohannesHoppe on master

    playing with attribute directiv… more examples (compare)

  • Jan 15 2019 13:46

    JohannesHoppe on master

    typescript-playground: modules … book-rating: my first component (compare)

  • Jan 15 2019 11:50

    JohannesHoppe on master

    adds empty book-rating typescript-playground (compare)

  • Nov 23 2018 14:49

    JohannesHoppe on master

    Add Gitter badge Merge pull request #1 from gitt… (compare)

Johannes Hoppe
@JohannesHoppe
Herzlich Willkommen zum Workshop der Angular.Schule! 🅰️
Hier können wir Codeschnipsel, Links und andere Sachen teilen.
Johannes Hoppe
@JohannesHoppe
10 pure immutable operations you should know:
https://angular.schule/blog/2018-03-pure-immutable-operations
Johannes Hoppe
@JohannesHoppe
⭐️
<div class="card mb-4">
  <div class="card-body bg-light">

    <img width="200" class="img-thumbnail float-right"
         src="https://api.angular.schule/avatar/{{ book.rating }}">

    <!-- hands on: Stern ⭐️ statt zahl -->

    <div class="card-title">
      <h2>
        {{ book.title }}
        <span class="badge badge-secondary">{{ book.rating }}</span>

        ⭐️⭐️⭐️⭐️⭐️
      </h2>
    </div>
    <p>
      {{ book.description }}
    </p>
  </div>
</div>
Johannes Hoppe
@JohannesHoppe
Johannes Hoppe
@JohannesHoppe
TODO @JohannesHoppe Lazy Components mit Ivy
Johannes Hoppe
@JohannesHoppe
Johannes Hoppe
@JohannesHoppe

When subscribing to an observable in a component, you almost always arrange to unsubscribe when the component is destroyed.

There are a few exceptional observables where this is not necessary. The ActivatedRoute observables are among the exceptions.

The ActivatedRoute and its observables are insulated from the Router itself. The Router destroys a routed component when it is no longer needed and the injected ActivatedRoute dies with it.

Feel free to unsubscribe anyway. It is harmless and never a bad practice.