Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Jun 29 04:31
    Jason-Cooke synchronize #2055
  • Jun 28 14:51
    jesslilly commented #1827
  • Jun 12 18:16
    dvaldivia commented #1969
  • Jun 12 17:55
    dvaldivia commented #2049
Atul
@atulhm
I’m relatively new to ng2 but my assumption was that if you have multiple components in that dir and you want to include them all somewhere else you only have to include one file. In index.ts you would include the other components for that directory… (I had the same question…when I saw it)
geraldmorisseau
@geraldmorisseau
thanks you're right
Atul
@atulhm
:) thanks for confirming.
Raj Krishna Maharjan
@roxcity
this.http.get(...).map(...).catch is not a function
what do i do?
Mathijs Segers
@msegers
If people have questions I suggest posting them on stackoverflow and linking them here, just posting an error is not always a thingy people can work with.
That being said, anyone know if it's simple to generate a single js file instead of 3/9 (map and gz as well)
Carlos Esteban Lopez Jaramillo
@luchillo17
@all is there a way to set flags in the config? something like progress: true in config instead of webpack --progress?
shaikhspear16
@shaikhspear16
the angular2webpac starter is great
Is there a post that helps setup of this project from scratch
Mathijs Segers
@msegers
@Luchillo Should be, look up the regular webpack docs I guess, you could also embed it into your npm scripts in package.json
Carlos Esteban Lopez Jaramillo
@luchillo17
The issue is that i have no control over the build command, only the webpack.config.js in an Ionic 2 project, they start the build from gulp from inside a package they made themselves, so i can't touch the build command.
Thai Huynh
@thuynh
has anyone experience router link not adding the active class properly?
it used to work in beta 5
we're using beta 15 and it's broken
piotte13
@piotte13
routers are broken, they changed almost everything about them yesterday
Tycho Grouwstra
@tycho01
So ng2 RC had added support for precompilation. I didn't see mention of this in the current version of angular2-webpack-starter yet. I was wondering, wouldn't that precompilation and webpack (which I'm currently using for Jade and Less) clash?
makenti
@makenti
hello. I have error "Unknown dependency: registry:dt/core-js#0.0.0+20160317120654 " on installation this pack. has anyone solve or get this error before?
Stefano Sergio
@Bolza
is there any article that can argument why choosing webpack over SystemJS for an NG2 project?
Ioannis Baourdos
@ikbaou
hello, this project is sooo sexy! just a quick question: I am running build:prod dist is created, all good but it complaints about all html/css files from src/app/** . once I move them manually its all good - but I am copy/pasting all the .ts etc etc files too. Are they meant to be copied to dist ?
Ioannis Baourdos
@ikbaou

ok ... idiot ... I added an extra task on prod config and I am good to go :)

new CopyWebpackPlugin([{
    from: 'src/app',
    to: 'app',
    ignore: ['*.ts']
  }]),

I really like webpack (after year of ANT ... )

Alfredo Perez
@alfredoperez
Has anyone tried to run this starter from an asp.net project? Or even better...from an asp.net MVC?
Thai Huynh
@thuynh
does anyone know how to remove these messages "Duplicate identifier"
Christophe HOARAU
@no-more
Hi,
What is the best way to keep a project uptodate ?
Angular2 is evolving fast with breaking changes, material2 is still in alpha.
I would like to start building a project, but I don't want to be stuck on the current versions.
How could I keep my project update to your version ? It's very hard to know what I should update between each release without creating a new project each time. Do you store some kind of update/migration rules to apply ?
Thanks a lot
Jaroslaw Ivanov
@ivanovjaroslaw
How do I use moduleId with module.id in webpack?
Please use filename if you must use templateUrl and styleUrls rather than webpack's module system.
Can you explain me, what does it mean 'use
filename'? So, there is templateUrl, there is a app.component.html file in same dir. What value should I put to templateUrl?
Oh, I see. Somethin like this template: require('./home.html'). It's weird.
99% Cocoa
@rjlee7
Has anyone used bootstrap-sass (bootstrap 3 with sass) with the starter, and could share examples?
jennyraj
@jennyraj
Trying to start a new project with angular2-webpack-starter and then use using angular_cli for adding other code items . Has anyone been successful? with this repo or any other repo? thanks in advance!
Jyothi lakshmi R
@Jyothi406
Hi, can any one help me in this,
console error: "XMLHttpRequest cannot load https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823. Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response." and please explain me how to do http header authentication in angular2
Attila Egyed
@tsm91

the error you get has something to do with cors. i never used uber api before, try to search on the web http://stackoverflow.com/questions/8685678/cors-how-do-preflight-an-httprequest

for ng2 authentication try https://www.npmjs.com/package/angular2-jwt also if you are not in a hurry read https://medium.com/@blacksonic86/authentication-in-angular-2-958052c64492#.69wcuux91

this is for frontend, you also need to implement the backend counterpart

Mathijs Segers
@msegers
@Jyothi406 I'm pretty sure they don't allow API requests through js then if that header is not available. I'd suggest wrapping it in another server side API or figure out if they have a solution for that problem (It is not an angular issue).
Blackbaud-PatrickOFriel
@Blackbaud-PatrickOFriel
Do y'all happen to know of any good examples of using Webpack in an application with Angular 1 and 2 (using ngUpdgrade)?
Jyothi lakshmi R
@Jyothi406

This error in Mozila :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.uber.com/v1/products?latitude=12.9716&longtitude=77.5946. (Reason: missing token 'access-control-allow-headers' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel).

This error is in Chrom:
XMLHttpRequest cannot load https://api.uber.com/v1/products?latitude=12.9716&longtitude=77.5946. Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response.

i am not sure it origin mismatch or token not assigned in the header, i am not using oauth i just want to authenticate with server token provided by the uber api server.

this is my code:

client.service.ts
getEstimatesForUserLocation (lat:number,lon:number) {

let endpoint = 'https://api.uber.com/v1/products';
let url  = `${endpoint}?latitude=${lat}&longtitude=${lon}`;
let headers = new Headers();

headers.append('Authorization', 'SERVER_TOKEN');//assigning my server token to header
headers.set('Access-Control-Allow-Origin', '*');
headers.get('Access-Control-Allow-Origin');
headers.append('Access-Control-Allow-Headers','x-requested-with, Content-Type, origin, authorization, accept, client-security-token');
headers.get('Access-Control-Allow-Headers');

return this.http.get(url, {headers})
  .map(res => res.json());

}
client.component.ts

getEstimatesForUserLocation() {
this._countryService.getEstimatesForUserLocation(this.lat, this.long )
.subscribe(
data=> this.row = data,
error =>this.error = "location" + this.lat + this.long + "invalid."
);

}

can any one please tell me server token which i am assigning here is correct?
note: i am using @angular/http package

webdev48
@webdev48
I am on beta 11 using this web pack starter...everything seemed to be working until last week... I recently started getting the following on my console
'//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead. and a lot of them warnings whenever the application bootstraps
what should i do to avoid these warnings ( other than upgrading to latest release )
Colin Kearns
@Ckearns1210
I have got my project upgraded to RC 2 but the update must have broken something as I am now getting this error again: 90% optimize assetsError in bail mode: [default] /Users/Daily/Shortcut-Webpack/typings/browser/ambient/jquery/index.d.ts:3223:12 Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type 'JQueryStatic'. and I cannot figure out how I fixed it the first time, does anyone know?
Graham Churchley
@gchurchley
I'm using Karma to test my ng2 app. How do I force Karma to acquire plugins from the local [current] folder? I am seeing this debug message: Loading plugin C:\Program Files\nodejs\node_modules/karma-requirejs. Why is it looking in the "Program Files" folder?
Graham Churchley
@gchurchley
Fixed my Karma issue with regard to global plugins. I did
npm uninstall -g karma-requirejs
So now there is no global version and Karma picks the local version in the current folder. This is NOT how I would expect it to work. Surely the local folder should take precedence.
Chris Grant
@ChrisGrant
Does anyone know how to get environment variables working in the production build? I'm running the dist folder in a heroku instance, but i need to configure the variables in it with environment variables in the different instances of the pipeline. Just wondering what strategies people have been using for this?
Pontus Enmark
@penmark
what's the "correct" way add global pipes when testing? in spec-bundle.js:setBaseTestProviders?
Vadim Fedorenko
@meiblorn

@meiblorn
Hi, guys! I need help.
I am trying to write quick start for system.js for my first open source library: http://plnkr.co/edit/oeOnHTmWasmOgRhbKkcB?p=preview.

It throws "$ is not a function" error.
I am using typings in my project but don't know how to install typings in plnkr.
Help me to fix it, please.

    (<any>$)(this._el.nativeElement).fullpage(this.options);
falconmick
@falconmick

Would just like to tell you that you guys who have made this are amazing. Theres nothing worse than jumping into a stack and going, uh.. but what do I use...

The documentation is great and it looks like it's got everything I want.

Has anyone made an in-depth guide to the entire solution? I would love a video series using this explaining all the components and how they work.

Once again. THank YOU@!!@!

Dmitry Erzunov
@derzunov_twitter
hi everybody! I try to install typings, and get error with zone.js >> typings ERR! message Attempted to compile "zone.js" as an external module, but it looks like a global module.
Help me please! What am I doing wrong? Osx, nodejs 4
falconmick
@falconmick
What exactly did you type, do you have a log?
Dmitry Erzunov
@derzunov_twitter
sudo typings install