Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
Steven Myers
@slmyers
err not controllers sorry i meant factories
i'm new my apologies
Sergey Protko
@fesor
@slmyers first of all, why do you use factory?
you asking about testing services, right?
Steven Myers
@slmyers
i use a factory to inject data into different components
yes it's a service
something like this
Steven Myers
@slmyers
oh perfect that's just what i needed
thanks
Sergey Protko
@fesor
your service is just javascript object
nothing special if you mock all your dependencies
Steven Myers
@slmyers
yes I can see now
Sergey Protko
@fesor
this is not perfect illustration, hope it will help
Steven Myers
@slmyers
it will help i'm sure
Forrest Loomis
@cybercyst
Hi everyone, I'm looking to use NG6-Starter for a project I'm working on, and I'm hitting a roadblock. I need to either split out my config.js file to its own file, or at least stop that file from being bundled, so that Jenkins can configure it per environment, and it can be configured in the end environment... I've been reading some webpack documentation, but having trouble wrapping my head around it. I wonder if anyone has any pointers?
Sergey Protko
@fesor

@cybercyst I think i should add wiki page about this.

Personaly I use module aliases:

resolve: {
    root: __dirname + '/frontend',
    alias: {
      'app-config': `./../config/${argv.release ? 'release' : 'local' }.js`
    }
  },
and then just import it as usual module.
import config from 'app-config';
so you can set config path dynamicly
Forrest Loomis
@cybercyst
@fesor: So our set up is pretty wonky, actually :) We have a config.json with key values for dev, stg, prod, and then we generate a config.js file that we can use for dev work. When we push to the git repo, a debian package file is created, that has a postinstall that generates that config.js, depending on the environment it is has been installed in.
Sergey Protko
@fesor
@cybercyst sooo... what?)
Forrest Loomis
@cybercyst
Unfortunately, I can't really change those steps that are out of my control, just try to set up an environment that works in similar way
Sergey Protko
@fesor
@cybercyst just prepare config file, maybe change path for alias, and build project
Forrest Loomis
@cybercyst
So, i basically need to not bundle config.js
Sergey Protko
@fesor
you could exclude it from bundling
Forrest Loomis
@cybercyst
although if I could split config.js's module into its own file, then that file could be replaced by the debian package's postinstall's bash script
Thanks @fesor -- I'm taking a look :)
Bruce Denham
@bdenham
@fesor Thanks for the explanation of why the todo example app is different than the starter. I was wondering about that myself, and I completely understand now. Good to know and it gives me a clearer vision of the different ways in which the spirit of the structure can be modified/simplified.
Sergey Protko
@fesor
@bdenham You are welcome) I firsly created todomvc example just for myself (to share in russian-speaking frontend community as addition to article about angular 1.5)
Bruce Denham
@bdenham
@fesor Very nice work! Keep it going and I'll try to catch-up!
Sergey Protko
@fesor
@bdenham maybe you have any ideas of how improve this project? Maybe something that may be hard to understand?
Bruce Denham
@bdenham
Yes. I will study and work with it over the next few days and get back in touch with you to discuss details. Thanks, again. Talk more soon.
Sergey Protko
@fesor
@bdenham cool)
Diogo Afonso Barroso
@icylabsDev
hej guys, how can I use $scope.apply(), I have a view that does not update when model changes. I know I shouldn't import the '$scope' is there a different way?
Sergey Protko
@fesor
$timeout service
Craig Shearer
@craigsh
I'm trying to use gulp build but it fails with "Error: SFX Bundle input error"
Sergey Protko
@fesor
@craigsh can you provide more details?
Craig Shearer
@craigsh
Sure - I'm using the jspm version. I've just tried starting from scratch again - i.e. forking the repo, and running the npm i, etc.
Running gulp serve is fine and the app works, but the gulp build fails with that error.
[09:54:15] Using gulpfile ~\repos\NG6-starter\Gulpfile.js
[09:54:15] Starting 'build'...
[09:54:16] 'build' errored after 486 ms
[09:54:16] Error: SFX Bundle input error
at formatError (C:\Users\Craig\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:169:10)
at Gulp.<anonymous> (C:\Users\Craig\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:195:15)
at emitOne (events.js:77:13)
at Gulp.emit (events.js:169:7)
at Gulp.Orchestrator._emitTaskDone (C:\Users\Craig\repos\NG6-starter\node_modules\orchestrator\index.js:264:8)
at C:\Users\Craig\repos\NG6-starter\node_modules\orchestrator\index.js:275:23
at finish (C:\Users\Craig\repos\NG6-starter\node_modules\orchestrator\lib\runTask.js:21:8)
at C:\Users\Craig\repos\NG6-starter\node_modules\orchestrator\lib\runTask.js:45:4
Omer Etrog
@omer72
hi, anyone used ngMock or angular-mock ?
Sergey Protko
@fesor
@omer72 what the question?
Omer Etrog
@omer72
@fesor I`m looking for an example gulp file to add the angular-mock in a task
Sergey Protko
@fesor
@omer72 why do you need to add something in gulpfile?
Omer Etrog
@omer72
didn't saw it, great :smile:
@fesor and just to use it as is?
@fesor I want to use "angular-multimocks" , its look better