Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jun 26 20:36
    john-dent commented #88
  • Jun 26 20:35
    john-dent commented #88
  • Mar 19 22:58
    gmostert closed #244
  • Feb 08 06:53
    OliverWall commented #251
  • Dec 14 2018 08:06
    fadehelix commented #251
  • Dec 14 2018 05:03
    thematho commented #251
  • Dec 14 2018 05:01
    thematho commented #209
  • Dec 14 2018 04:59
    thematho commented #209
  • Dec 12 2018 21:57
    fadehelix synchronize #251
  • Nov 04 2018 23:35
    thematho synchronize #224
  • Oct 26 2018 16:00
    Stephanemw commented #248
  • Oct 26 2018 00:16
    thematho synchronize #224
  • Oct 16 2018 11:11
    caprica-Six commented #148
  • Oct 16 2018 11:11
    caprica-Six commented #148
  • Oct 16 2018 11:10
    caprica-Six commented #148
  • Oct 16 2018 11:08
    caprica-Six commented #148
  • Oct 16 2018 11:07
    caprica-Six commented #148
  • Oct 09 2018 00:35
    thematho commented #251
  • Sep 16 2018 13:27
    scriptrance commented #114
  • Sep 14 2018 23:22
    KiranChaudhariJM commented #114
Bnaya Peretz
I see that each component have its own module
Is it considered as best practise?
Demetri Ganoff
Has anyone tried placing .spec.js files outside the client/app folder? I'm trying to convert an existing project to use a similar webpack/testing setup as NG6-starter, but having issues getting the tests to run
I have my source files in src/app and my test files in test/unit.
I'm wondering if I need to add something to my spec.bundle.js file or the karma config so that it loads the correct source and test files
I keep getting this terminal error:
forEach@webpack:///~/angular/angular.js:321:0 <- spec.bundle.js:390:25
loadModules@webpack:///~/angular/angular.js:4601:0 <- spec.bundle.js:4670:13
createInjector@webpack:///~/angular/angular.js:4523:0 <- spec.bundle.js:4592:31
workFn@webpack:///~/angular-mocks/angular-mocks.js:3074:0 <- spec.bundle.js:34916:61
inject@webpack:///~/angular-mocks/angular-mocks.js:3054:0 <- spec.bundle.js:34896:47
webpack:///src/app/app.config.spec.js:9:0 <- spec.bundle.js:35004:12
webpack:///~/angular/angular.js:4641:0 <- spec.bundle.js:4710:54
That was actually after I moved the spec file into src/app just to see if it would work
Aneesh Devasthale
Hi all, this is a seriously good boilerplate. I need a node server which will serve my HTML/JS/CSS. It's pretty basic to do if I do a gulp webpack and then simply serve the dist directory. Can i have this in dev mode also? Basically I am trying to render the initial state on the server (using ejs/jade) and set it as a global variable in a script tag. The angular app will then load this initial state.
Hello Guys, I'm kinda new with ES6 and I want to know if you have some snippets or codes I can follow to implement API on NG6-starter?
Jayr Motta
have anyone enabled e2e tests on this starter? i'm trying to do it but i'm getting this:
15 12 2016 10:25:29.091:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket 491w3G-X2bh-KHZgAAAA with i
d 92737466
PhantomJS 2.1.1 (Mac OS X 0.0.0) LOG: 'WARNING: Tried to load angular more than once.'
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  TypeError: undefined is not a constructor (evaluating 'window.angular.$$csp()')
  at <myfolder>/spec.bundle.js:33019
David Wayne Griffith
@jayrmotta I was going to set unit and e2e tests this weekend on a small project that used the NG6 starter. I will let you know if I get an optimal setup for e2e. For now, I found this repo: https://github.com/zombiQWERTY/angular-webpack-starter You might want to clone it and see if the e2e tests work. If they do you will have a working setup to compare against. Cheers
David Wayne Griffith
I forgot, I am using my testing setup from https://github.com/AngularClass/NG6-todomvc-starter That might be the repo you want to clone and test for comparison.
David Wayne Griffith
@jayrmotta https://github.com/AngularClass/NG6-todomvc-starter I just cloned it, ran npm install, then followed the e2e setup and run instructions on the README and all the tests ran just fine. So you should look that as a source reference.
George Daniel

Hello i'm new to AngularJS where do i start from

Hi all.
I'm using the starter with Angular Material (https://material.angularjs.org/latest/), it's working great so far.
There is a component for dialogs at https://material.angularjs.org/latest/api/directive/mdDialog
When a component asks for the URL an HTML template, how do I provide the template using the ES6 syntax?


controller: DialogController,
templateUrl: 'tabDialog.tmpl.html',
parent: angular.element(document.body),
targetEvent: ev,

How to provide the template?

steven kauyedauty
I have to ask if there is something we have to do besides npm run build to get the imports read when we create a service folder and file for this starter?
Andrey Pindyuk
how to can include ng-scrolbars to my project with NG6-starter?
I'm using Webstorm for development, Using this boilerplate app, I manage to Debug my code using webstorm. But I Can't Debug Unit Test. Did someone managed to Debug Unit tst using webstorm and NG6 starter app. The unit test are running from Webstorm but they never stop at breakpoints.

I found the problem for debugging unit test, it is described here: http://stackoverflow.com/questions/41988027/karma-webpack-sourcemap-preprocessor-doesnt-stop-at-breakpoints-in-webstorm/42005407#42005407

the key was to put this is karma.conf.js:
webpack: {
devtool: 'source-map',

Hi Can anyone let me know how to connect mysql from controller in NG6-starter ?
Ramy Tamer
@Arch88 you need backend server, This starter for the client side
@ramytamer I am using Loopback for backend APIs
hi guys, can some one direct me to a quick starter or tutorial for NG6-starter?
Matias Fernandez Martinez
just the @dinindu-fernando Readme file on https://gitter.im/AngularClass/NG6-starter
@leonelag can you use the template directly?
template: require('./home.html'),
Jordan Christley
Hey, this may seem elementary, but I can't seem to get a component that I created to show up on the page.
  1. I created the component as it says to, mine is called "profile"
  1. It simply contains two <h1> headers within profile.html
  1. I placed the <profile></profile> tags in home.html
  1. That didn't show, even though an h1 tag that I placed directly into home.html DID show. So then I tried placing the <profile> tags in navbar.html
It still doesn't work
Jordan Christley
Does anyone actually reply to this channel?
Tushar Mudgal
@JordanTreDaniel use command line instead to create component npm run component -- --name componentName
if you want common component use npm run component -- --name footer --parent ../common
And then add Component you imported in common.jsif its common else to components.js if its a simple component
Hello thanks for awesome project, im starting with webpack and ui works great, but i have troubles with making it friendly with express server, can anyone share some basic repo or boilerplate with ui+backend and webpack? thanks alot
Jordan Christley
Thanks @mr-woot I was missing the import part. Right now I am still working with the project, since it is such a great one, although I would love to know how to add a design framework to it.
Roy M J
How can i turn off browser sync in dev environment?
Hi, i am trying to run this project as Angular Hybrid
any ideas if thats a good idea, my base app is on Angular 1.5 and new modules would be on Angular 2.0
Tomasz Szymanek
Hello there. Is there any good way to include bootstrap to ng6-starter project?
How do I deal with nested router
is there any example around??
It worked when I used /data instead of /home/data sorry for the fuss
Punita Ojha
This message was deleted
hello, i'm trying to add a bootstrap.css file into my app.js but doesn't seem to read directly from the file directory. is there any workaround it?
ok nvm i added it directly in the index. but is there any way i can import the file directly in my app.js?