Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 23 2020 00:49
    qdouble removed as member
  • Feb 23 2020 00:49
    govi2010 removed as member
  • Feb 23 2020 00:49
    lanovoy removed as member
  • Feb 23 2020 00:49
    d3viant0ne removed as member
  • Feb 23 2020 00:49
    shlomiassaf removed as member
  • Feb 23 2020 00:49
    mastertinner removed as member
  • Feb 23 2020 00:49
    colinskow removed as member
  • Feb 23 2020 00:49
    matthewdenobrega removed as member
  • Feb 23 2020 00:49
    dotcs removed as member
  • Feb 23 2020 00:49
    DanWahlin removed as member
  • Feb 23 2020 00:49
    Foxandxss removed as member
  • Feb 23 2020 00:49
    niieani removed as member
  • Feb 23 2020 00:49
    katallaxie removed as member
  • Feb 23 2020 00:49
    kentcdodds removed as member
  • Feb 23 2020 00:49
    jeffbcross removed as member
  • Feb 23 2020 00:49
    jimthedev removed as member
  • Feb 23 2020 00:49
    carlosliu removed as member
  • Feb 23 2020 00:41
    PatrickJS commented #1686
  • Feb 22 2020 22:23
    kamil-kielczewski commented #1686
  • Feb 22 2020 22:23
    kamil-kielczewski commented #1686
Joanne Yae
@nyjy85
I still want to know how you can do it with resolve.alias and with plugins
Anas R. Firdousi
@afirdousi
@nyjy85 yes thats exactly the way it should be done. Import it in your main.ts or wherever you are bootstrapping your Angular app.
https://twitter.com/AnasFirdousi/status/707762724457938945
Folks, please free to comment, question or any feedbacks are hihgly appreciated.
Maciej Kowalski
@fkowal
hello

can anyone explain to my what

preLoaders: [
// TODO(gdi2290): exclude: [ helpers.root('node_modules/rxjs') ] fixed with rxjs 5 beta.3 release
{ test: /.js$/, loader: "source-map-loader", exclude: [
helpers.root('node_modules/rxjs')
] }
],

is the story behing excluding node_modules/txjs

and the comment TODO(gdi2290) ?

i have the same problem with ng2-bootstrap and if i knew what the problem is i would try to fix it in ng2-bootstrap

Leigh Caplan
@texel
Hey all, I had a quick question- is there a reason that the ng2 webpack starter isn't pulling in the polyfill bundle provided with angular2, vs using es7-reflect-metadata, zone.js/microtask, etc?
I couldn't find any explanation and I don't like cargo culting :)
Joanne Yae
@nyjy85
This message was deleted
This message was deleted
This message was deleted
Duncan Davis
@tanahara
I am having an issue with the timeout on typings install
node is complaining about "es6-promise": "github:typed-typings/npm-es6-promise#fb04188767acfec1defd054fc8024fafa5cd4de7"
It times out
Artur Rozwalak
@arozwalak
hi guys, I was wondering if it's possible to configure prod version to compile components into separate files, and than lazy load components as they are needed instead loading whole application at once?
94b
@94b
hi, do somebody has an example how to use this package with https://github.com/justindujardin/ng2-material ?
Maciej Kowalski
@fkowal
@94b i am using it with https://github.com/valor-software/ng2-bootstrap, it probably similar
94b
@94b
thanks @fkowal
Matthew de Nobrega
@matthewdenobrega
Hi all, I have a fairly large application based on this starter, and for Angular beta > 6 the dev server keeps running out of memory. Has anyone else had a similar issue, and any ideas on how to optimize the webpack config? Commenting out app entrypoints doesn't help so it looks like angular is the main culprit here. Downgrading to 6 fixes the issue.
Sam Jones
@ollwenjones
@arozwalak you have to use webpack require.ensure blocks to make it spit things into different chunks, then you have to figure out a way to load them in angular at the right time.
You can use asyncRoute to do this on a basic level fairly easily, though I imagine the more granular you want to be, the more complicated the setup will get... very quickly.
Matthieu Drula
@matthieu-D
Hi guys
Can somebody tell me which file to modify to turn off Hot Reload please?
Artur Rozwalak
@arozwalak
thnx @ollwenjones, i'll try that
Sam Jones
@ollwenjones
@matthieu-D you need to look at the arguments passed into the webpack-dev-servernpm scripts in the package.json
Sam Jones
@ollwenjones
@arozwalak heads up because I burned a lot of time missing this: require.ensure blocks are crawled by webpack essentially 'compile time' - so they have to exist ahead of anything that happens at runtime. Also, you might have to look up a type definition for webpack require. There's some instructions near the bottom here: https://github.com/TypeStrong/ts-loader
Vadim Fedorenko
@meiblorn
Guys, hello.
When I use [(ngModel)] in my templates I am getting the 'No value accessor for '' in [null]' error. Here is example: http://plnkr.co/edit/BUvGjFhgpxoe5k2UyjWe?p=preview . How to fix?
To see error just open debug pane
I get this error only in production mode. In debug mode it works well
sorry, 'development' mode
Sam Jones
@ollwenjones
@meiblorn that plunk is using alpha.39... are you building in alpha.39?
Vadim Fedorenko
@meiblorn
No, it was just for example to show error. Look here: https://github.com/AngularClass/angular2-webpack-starter/blob/master/src/app/home/home.html . If I use [(ngModel)] directive instead of [value]="data.value" (input)="data.value = $event.target.value" I get such error after html minification
If not — it works perfectly
I guess, problem can be here ...
customAttrSurround: [[/#/, /(?:)/], [/\*/, /(?:)/], [/\[?\(?/, /(?:)/]], customAttrAssign: [/\)?\]?=/]
Vadim Fedorenko
@meiblorn
I've created an issue: AngularClass/angular2-webpack-starter#415
Vadim Fedorenko
@meiblorn
Hello. Does someone have working example with angular2-webpack-starter and ng2-bootstrap ?
Sam Jones
@ollwenjones
@meiblorn the "minificatin" might be the real issue with your ngModel. I didn't think minification was working since beta.0
Tai T. Truong
@truthtaicom
I have a error: ORIGINAL EXCEPTION: Primary outlet is already registered.. My app.ts :
/*
 * Angular 2 decorators and services
 */
import {Component} from 'angular2/core';
import {RouteConfig} from 'angular2/router';
// import {FORM_PROVIDERS} from 'angular2/common';

// import {RouterActive} from './directives/router-active';
// import {HeaderComponent} from './header/header';
import {FooterComponent} from './footer/footer';

import {Home} from './home/home';
// import {Admin} from './admin/admin';

/*
 * App Component
 * Top Level Component
 */
@Component({
  selector: 'app',
  // providers: [...FORM_PROVIDERS],
  directives: [FooterComponent],
  pipes: [],
  styles: [`
    main {
      font-size: 1rem;
      line-height: 1.5;
      color: #666;
      background-color: #ededed;
    }
    :global(body) {
      color: #666;
      background-color: #ededed;
    }
  `],
  template: `
    <main>
      <header>
      <nav>
        <h1>Hello</h1>
      </nav>
    </header>
    <router-outlet></router-outlet>
    <footer-component></footer-component>
    </main>
  `
})
@RouteConfig([
  { path: '/', component: Home, name: 'Index', useAsDefault: true },
  { path: '/home', component: Home, name: 'Home' },

])


export class App {

  constructor() {

  }
}
Vadim Fedorenko
@meiblorn
@fl
@fkowal, does templates work? For example, Alert?
@fkowal , I am not able to use Alert as Directive. Do you know how to fix it?
Maciej Kowalski
@fkowal
i am not using all components
i’ve been using typeahead, and dropdown
Vadim Fedorenko
@meiblorn
I don't see any changes in templates in your commits history
It could be useful, because I am getting No Directive annotation found on Alert error when write like so directives: [Alert]
Vadim Fedorenko
@meiblorn

Here's a little example:

app.component.ts

import {Alert} from 'ng2-bootstrap/ng2-bootstrap';

@Component({
    selector: 'app',
    providers: [],
    directives: [Alert],
    pipes: [],
    styles: [require('./app.component.scss')],
    template: require('./app.component.html')
})
export class App  {

Alert component

@Component({
  selector: 'alert',
  directives: [NgIf, NgClass],
  template: ALERT_TEMPLATE
})
export class Alert implements OnInit {
.....

Browser logs:

browser_adapter.js:76 EXCEPTION: No Directive annotation found on Alert

Env: angular2-webpack-starter & ng2-bootstrap.

nodecraic
@webworkio
hey, if anyone has any remote remote , designer, DevOps or Sysadmin jobs they can post them at http://webwork.io
Maciej Kowalski
@fkowal
hmm that is strange
Hsinchang
@mkjeff
ng2-bootstrap need to upgrade to ng2 beta.9. Currently, I use local source files of ng2-bootstrap, waiting for npm update. seem like typescript emit different annotation meta?