## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### 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
• 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
• 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
András Iványi
@andyskw

I would like to add an NG6-starter based application to a classic CI/CD pipeline: Some static analysis, then package build, then unit tests, then etc, and I do not want to break the principle of "Test against the artifact that you are going to deploy" principle. Since karma currently builds the application for itself, it does not really rely on the artifact, that is going to be deployed, even though by the stage karma runs, it is already built.

My question is, if you have any idea/practice/example/experience with this topic?

I am experimenting with the ´files´ option of karma config, but I guess, spec.bundle.js must be notified about that the imports that it is going to find in the spec files will point to the webpack bundle, or alternatively spec.bundle.js should be webpacked in app build time.
Diogo Afonso Barroso
@icylabsDev
hey guys how can I use $watch inside a controller Class Sergey Protko @fesor @icylabsDev use setter instead const bindedValue = Symbol('bindedValue'); class MyController{ set bindedValue(val) { this[bindedValue] = val; // do something } } export default { bindings: { 'bindedValue': '<' } controller: MyController }; Diogo Afonso Barroso @icylabsDev hej guys I don't know why but I getting a problem with adding a favicon into my page. <link rel="icon" type="image/png" href="../app/assets/images/favicon.ico"> Is there a special way? does the image get bundled? Steven Myers @slmyers can anyone explain how to test controllers using this boilerplate? Sergey Protko @fesor @slmyers well... just create instance of controller, and check it's state? 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 Sergey Protko @fesor 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)