Skip to content

seed points to an invalid repository #71

@rburgst

Description

@rburgst
  1. it seems that https://github.com/AngularClass/angular-seed no longer contains the angular seed project, but now is a vue.js repo.
  2. the information in the readme contradicts somewhat to what is stated here https://github.com/angular/angular-cli/wiki/stories-configure-hmr
  • the info in the readme seems to be somewhat outdated.
  1. my component state is lost when working with the description in https://github.com/angular/angular-cli/wiki/stories-configure-hmr

From looking at the video, it is suggested that the component state should be maintained. However when using a trivial example

import { Component } from '@angular/core';
import {HmrState} from 'angular2-hmr';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app works!';
  @HmrState counter = 0;

  increment() {
    this.counter = this.counter + 1;
    return false;
  }
}

and I change anything in app.component.html then the counter is reset to 0 after saving.

So
a) is the info in https://github.com/angular/angular-cli/wiki/stories-configure-hmr wrong?
b) should the component state be maintained automatically?
c) it would help if the seed project still existed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions