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 00:49
    qdouble removed as member
  • Feb 23 00:49
    govi2010 removed as member
  • Feb 23 00:49
    lanovoy removed as member
  • Feb 23 00:49
    d3viant0ne removed as member
  • Feb 23 00:49
    shlomiassaf removed as member
  • Feb 23 00:49
    mastertinner removed as member
  • Feb 23 00:49
    colinskow removed as member
  • Feb 23 00:49
    matthewdenobrega removed as member
  • Feb 23 00:49
    dotcs removed as member
  • Feb 23 00:49
    DanWahlin removed as member
  • Feb 23 00:49
    Foxandxss removed as member
  • Feb 23 00:49
    niieani removed as member
  • Feb 23 00:49
    katallaxie removed as member
  • Feb 23 00:49
    kentcdodds removed as member
  • Feb 23 00:49
    jeffbcross removed as member
  • Feb 23 00:49
    jimthedev removed as member
  • Feb 23 00:49
    carlosliu removed as member
  • Feb 23 00:41
    PatrickJS commented #1686
  • Feb 22 22:23
    kamil-kielczewski commented #1686
  • Feb 22 22:23
    kamil-kielczewski commented #1686
Sam Jones
@ollwenjones
What's the best way to keep my project config up to date with a seed project such as this one? The angular 2 project is going to be inside a UI subfolder of a larger repository, so it won't be as simple as adding another remote and fetching changes and cherry picking... :( Are there any best-practices besides compare & copy+paste?
Sean Larkin
@TheLarkInn
Ncu is nice
Mathijs Segers
@msegers

@ollwenjones
What I"m currently doing is having an project which is basically a fork of webpack starter, I keep pulling in here the newest update and tweak it to use my own libraries, I then pull that into my other projects which mostly works fine.

Do have to add that I keep having to remove home, about and changes to RouteConfig. But it's trivial.

Sam Jones
@ollwenjones
Thanks @msegers . Sounds like a nice/obvious approach. Part of my challenge will be different paths from the .git folder to the package.json for instance. Teammates don't want the Angular 2 UI in it's own repo for the good reason of not having two PRs in two repos to sync for any end-to-end change. I wonder if there's some git config I don't know about that could help with the pathing, or... investigate the dreaded/controversial 'git submodule?'
raparlasiva
@raparlasiva
npm run server doesn't automatically open the webpage..had to manually type localhost:3000 in the browser to access the webpage..Was wondering why this feature was left out.....
raparlasiva
@raparlasiva
Is there a way we can include this feature in the application..
raparlasiva
@raparlasiva
Also getting this type error inside main.browser.ts ----> argument type App is not assignable to parameter type Type.
raparlasiva
@raparlasiva
i had to add <any>App inside bootstrap function for the error to go away. I am using webstorm 2016.1.2
Paul van den Berg
@bergvandenp
what do you guys use for templateurls with webpack?
Sean Larkin
@TheLarkInn
raw loader
Paul van den Berg
@bergvandenp
use template: require(bla.html) or webpack copy plugin?
Sean Larkin
@TheLarkInn
so you can do a require('./path-to-html-file.html')
yup
IMO thats the best option.
Paul van den Berg
@bergvandenp
why? so its all bundled?
Sean Larkin
@TheLarkInn
No external reqests, the templates are inlined, and it allows you to have a great Dev experience with your ng templates in a separate file in your editor so you can use things like Emmet and Syntax highlighting etc.
so
@Component({
  template: require('./foo.html')
})
Paul van den Berg
@bergvandenp
intellij loses the reference when I wrap it in a require.
do you use the same for css?
Sean Larkin
@TheLarkInn
that essentially does
@Component({
  template: `<inline-of>Your HTML file, awesome I can write it in a separate file now sweettttt.</inline-of>`
})
Yes
Use it in the same way, except its in an array for styles
Paul van den Berg
@bergvandenp
ok, thanks
Sean Larkin
@TheLarkInn
no prob
There should be some explanation in Patricks starter in the loaders section
Paul van den Berg
@bergvandenp
kinda confusing some ppl use webpack in quickstarts and others use systemjs
Sean Larkin
@TheLarkInn
for raw-loader
It is. I always advocate webpack becuase I believe it provides the best experience for not only the developer, but also for the browser becuase its optimized out of the box really well.
if you want something super lite to ramp up into this starter you can take a look at mine also
Paul van den Berg
@bergvandenp
cool, thanks
got another question on a different subject tho ;
;)
Sean Larkin
@TheLarkInn
lmao I'll try and help
Paul van den Berg
@bergvandenp
how can I validate the package.json...
as in: clean my own installed modules and rebuild from scratch to check it for other devs
I've been experimenting here and there and need to clean up deps
Sean Larkin
@TheLarkInn
hmm, I'm sure theres something out there
Brought to you by google.com ;-)
Paul van den Berg
@bergvandenp
heh thnx. found that, but that's not really what I'm looking for (i think)
I want to be certain my package.json is valid so that stuff runs smoothly on a clean machine
Nevergonnachange
@Nevergonnachange
Hello everyone. I've started a project with the angular2-webpack-starter. Now I want to add an express API server. I've made a stackoverflow concerning my problems. http://stackoverflow.com/questions/37309419/angular2-webpack-express-api-server
Any help would be very appreciated.
falconmick
@falconmick
Doesn't it already use express? I thought that this project uses that connect thing
Connect middleware *
webdev48
@webdev48
Has anyone used ng2-bootstrap with this starter ?
I am trying to integrate typeahead and I am stuck
Sean Larkin
@TheLarkInn
After you getting any errors
Dominic
@domfarolino
@falconmick I'm in a similar position as @Nevergonnachange , I have an existing angular2 project using node and express as a backend right now, the site serves my main index file and angular2 takes care of the view from there, is it easy to convert this from a system.js => webpack project?