Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 07 08:26
    testacp commented #1853
  • Nov 07 08:26
    testacp commented #1853
  • Oct 30 15:24
    emanuelcoelho1986 closed #2011
  • Oct 30 10:43
    sameerpallav commented #2025
  • Oct 15 15:20
    alanhg commented #1997
  • Sep 30 15:12
    bbrink68 commented #2049
  • Aug 23 13:34
    SouravKumar89 edited #2058
  • Aug 23 13:27
    SouravKumar89 opened #2058
  • Aug 22 00:04

    PatrickJS on master

    Update README.md (compare)

  • Aug 13 17:17
    ramsunvtech commented #1925
  • Aug 12 22:58
    terrancecorley commented #770
  • Aug 09 02:30
    jindovu commented #2049
  • Aug 09 02:22
    jindovu opened #2057
  • Aug 08 10:49
    krawinkelm commented #2053
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 09 11:40
    Sanafan commented #1713
  • Jul 05 11:41
    hoang-innomizetech commented #2053
  • Jul 05 07:32
    Jilaba commented #1824
Dan Cancro
@dancancro
and i made this for making use of the data www.techtradeoffs.info
Marinho Brandão
@marinho
Facebook does that just to protect themselves against future competition and catch some up&coming startups, but I think most React & ImmutableJS users would never have any issue though
interesting
Dan Cancro
@dancancro
last question... the Angular Style guide prescribes having a "core" folder for singleton things and a "shared" folder for multi-instance things. It seems that a Redux store would meet the criteria for going in the core folder. What do you think?
Marinho Brandão
@marinho
I didn’t know about core… jsut about shared, which we use… fair point about core, yes, probably store should be placed in there
tuckerjt07
@tuckerjt07
I'm working with the material2 branch, new to angular 2 and material 2, and cannot figure out where to put the sass file to change the default theme as shown here, https://github.com/angular/material2/blob/master/docs/theming.md
adirzoari
@adirzoari
who knows to make facebook login to app with ionic 2?
Dan Cancro
@dancancro
@marinho in an Angular Redux app, where do you think services that get data should go? The Google Tour of Heroes puts such things into src/app/my-feature/my-feature.service.ts. The ngrx example app puts them into src/app/services. The angular2-webpack-starter puts them in src/app/my-feature/my-feature.service.ts. I'm thinking that database communication is more connected to the store than the UI and so it should go in src/app/core/store/my-feature/my-feature.service.ts among the other store files.
Marinho Brandão
@marinho

hi @dancancro in my case, I used Swagger to generate an API client and that’s the only API service I have. It is generated outside of src by a postinstall npm entry.

Indeed the service is anyhow closer to the application state, but I don’t see them together, as the app state include other stuff that aren’t coming from API, such as calculated values, temporary stuff, cached data, user interactions, etc… I’d better keep the API service in something like src/app/services

Dan Cancro
@dancancro
thanks. i've started thinking of the store as the local backend. i wonder if that'll catch on :smile:
pigeont
@PigeonT
@PigeonT
can i use materialze for free?
I need some help!
any one there?
Marinho Brandão
@marinho

@dancancro I think the idea of a “global app state” is quite plastic. I think most of it is like a local backend, indeed, but not completely, and you probably will find people with different understandings implementing it in different ways.

I’m not very experient on Redux either, so, I’m always curious to see how other people are doing too

Chaikin Evgenii
@fater
Hello friends. Could you recommend a convenient timepicker for angular2?
lilowl
@lilowl
hi, anybody using cloudfront and gzip? I can't seem to get the configuration right. I've read that cloudfront will do this, and I can see the content-encoding response header is getting set, but the filesizes show that it is serving the uncompressed file. I see that some people, just upload the gzipped bundle, without the .gz extension and manually set the content-encoding header in S3 .. any recommendations?
Andriy Komm
@akomm
any suggestion to improve debug information (exception stack) most of the time I get crap and have to blindly guess what might have caused the error. Using maps, but most of the time neither ff nor chrome can make a connection between map and transpiled result
lilowl
@lilowl
folks, I've tried reading the issues, but can't figure out how to include jquery. here's what I've done. 1) npm i jquery --save 2) added import * as $ from 'jquery'; to vendor.browser.ts
I'm getting $ is not a function
Marinho Brandão
@marinho

@lilowl did you add $ to custom-typings.d.ts?

like below:

declare var jQuery;
Javier Richard Cuicapuza Antonio
@Cuica20
Hi everyone!
Please what is the best place to learn Angular2
Marinho Brandão
@marinho

hi guys!

you know, in AWS there are 3 bundle files: main, vendor and polyfills.

Does any of you know how to avoid main to happen for development environment ( webpack.dev.js )? So, instead, we have the actual files loading and bundling disabled?

Marinho Brandão
@marinho
and somehow together in the same question: how to prevent test to rebuild polyfills and vendor bundles after it starts to watch?
John Lee
@jlee1201
I keep getting Property 'map' does not exist on type 'Observable<Response>' errors when trying to execute karma unit tests. Any ideas anyone?
I haven't changed karma.conf / webpack.test.config / spec-bundle.js at all
Raghavan Parthasarathy
@raghavan85
Hi guys. I got a question. Even with running on prod mode, the vendor.bundle.js runs to ~ 900 kb. And with typescript / javascript, html and css on the main.bundle.js for a relatively small application running at least an MB, the page load can take a while depending on the network speed. Is there a way to reduce the size of these files ?
Carl Sutton
@dogmatic69
Hi all, I got a problem. App was kinda working, then I ran 'npm install' again and its completely broken now
/code ui-dash_1 | 21:58:35 73% optimize
ui-dash_1 | 21:58:35 0|can-dash | TypeError: chunk.hasRuntime is not a function
ui-dash_1 | 21:58:35 0|can-dash | at /usr/src/app/node_modules/webpack/lib/optimize/CommonsChunkPlugin.js:89:20
ui-dash_1 | 21:58:35 0|can-dash | at Array.filter (native)
ui-dash_1 | 21:58:35 0|can-dash | at Compilation.processCommonChunk (/usr/s
any ideas what Im missing?
Mark
@crain
@crain
Hi guys, I try to incorporate covalent with angular2-webpack-starter. When I import the CovalentCoreModule with CovalentCoreModule.forRoot() in my ngmodule imports i am getting:
Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'(anonymous function) @ metadata_resolver.js:245CompileMetadataResolver.getNgModuleMetadata @ metadata_resolver.js:230RuntimeCompiler._compileComponents @ runtime_compiler.js:142RuntimeCompiler._compileModuleAndComponents @ runtime_compiler.js:80RuntimeCompiler.compileModuleAsync @ runtimecompiler.js:71PlatformRef._bootstrapModuleWithZone @ applicationref.js:328PlatformRef.bootstrapModule @ application_ref.js:310main @ main.browser.ts:25ZoneDelegate.invokeTask @ zone.js:365Zone.runTask @ zone.js:265ZoneTask.invoke @ zone.js:433
The import value for CovalentCoreModule.forRoot() contains: {"providers":[null,null,null]}
Any hint what I am doing wrong here?
Jason
@jhoncue7
Is there any way to prevent Angular 2 errors from causing the build:dev script from erroring out?
Carl Sutton
@dogmatic69
fix the errors...
Jason
@jhoncue7
What I was looking for is any solutions that would help silence or suppress Angular errors that it detects to allow for the build:dev script to complete "successfully".
Carl Sutton
@dogmatic69
@jhoncue7 I would say the errors mean something, that should be fixed.
best to paste them here and I will see if I can help
There is no activity in this channel, and ive only been using ng2 for a week :/
Jany
@mymai91
Hi guys,
I have an issue when I do practice: AngularClass/angular2-webpack-starter#1098
Can you help me take a look this issue and help me answer.
Thank you
Andriy Komm
@akomm
do you also have raising performance issues the longer the dev server runs? got a 8x core 4,0ghz 26gb ram machine on ssd and unless I reload the dev server it gets worser and worser. even on a plain new instance of this prefab
Marinho Brandão
@marinho
Curious that it seems HMR isn't working properly in AWS. It reloads the whole app every time
johnespn
@johnespn
Hi guys, i have two projects that share a common domain model we defined using .ts files
whats the best way to share that domain model among serveral projects?
the two projects will be developed at the same time.
thanks a lot
Marinho Brandão
@marinho
@johnespn I’d create a library as a third repository and use it from both projects as it was third party, via npm/package.json
johnespn
@johnespn
@marinho thanks for your help, can you point to any example with similar config?
Marinho Brandão
@marinho

@johnespn there is a couple of examples over the web, this is one — https://github.com/jkuri/ng2-datepicker

other — https://github.com/ocombe/ng2-translate
other much bigger one — https://github.com/angular/material2

Bear in mind that there’s nothing special about building a library of reusable components. It will be very similar to a standard Angular2 app. You just have to configure the NgModule to export all components, pipes, directives and services you want to reuse and ensure its package.json is as clean as possible to let the other project use it.

It probably won’t need either routes and entry components, as it will always be just used by another app.

have fun!

tuckerjt07
@tuckerjt07

I am attempting to write unit tests using a templateUrl but am getting this error message

Failed: Uncaught (in promise): Failed to load forgot-password.template.html
    Error: Uncaught (in promise): Failed to load forgot-password.template.html

for my HTML template

Here is the component file
import {Component, ViewContainerRef} from '@angular/core';
import {MdDialog, MdDialogConfig, MdDialogRef} from '@angular/material';

@Component({
    selector: 'forgot-password',
    styleUrls: ['./forgot-password.style.scss'.toString()],
    templateUrl: './forgot-password.template.html'
})

export class ForgotPasswordDialog {
    public emailAddress;

    constructor(public dialogRef: MdDialogRef<ForgotPasswordDialog>) {

    }

    ngOnInit() {
        this.emailAddress = '';
    }

    cancel() {
        this.dialogRef.close();
    }

    submit(model: string, isValid: boolean) {
        if (isValid) {
            this.dialogRef.close(model);
        }
    }
}
and the spec
import { async, TestBed } from '@angular/core/testing';
import { Component, ViewContainerRef } from '@angular/core';
import { MaterialModule } from '@angular/material';
import { ForgotPasswordDialog } from './forgot-password.component';

describe('ForgotPasswordDialog', () => {
   let forgotPassword: ForgotPasswordDialog;

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [ForgotPasswordDialog],
            imports: [MaterialModule]
        }).compileComponents();
    }));

    beforeEach(() => {
        let fixture = TestBed.createComponent(ForgotPasswordDialog);
        forgotPassword = fixture.componentInstance;
    });

    it('module should be defined', () => {
        expect(forgotPassword).toBeDefined();
    });
});