These are chat archives for AngularClass/NG6-starter

9th
Feb 2016
Andrew Lombardi
@kinabalu
Feb 09 2016 07:44
having a hell of a time trying to get angular to work with affix in bootstrap. not sure method to go about it, everything I’ve tried so far has failed. only thing that really affixes is the damn navbar
Oleg Sudavnyy
@acestudiooleg
Feb 09 2016 09:10
import style from 'bootstrap/dist/css/bootstrap.css';
and add to webpack.config -
       { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,   loader: "url?limit=10000&mimetype=application/font-woff" },
       { test: /\.woff2$/,   loader: "url?limit=10000&mimetype=application/font-woff" },
       { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,    loader: "url?limit=10000&mimetype=application/octet-stream" },
       { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,    loader: "file" },
       { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,    loader: "url?limit=10000&mimetype=image/svg+xml" }
Oleg Sudavnyy
@acestudiooleg
Feb 09 2016 10:42
somebody know how include express server ?
Sergey Protko
@fesor
Feb 09 2016 11:09
@acestudiooleg you want to replace browsersync with just simple express server?
Andrew Lombardi
@kinabalu
Feb 09 2016 13:52
@fesor do you have any suggestions on how to get version on package.json for project into angular constant or just reference-able? Would like to show it on a status page so folks can report errors in version
Bernhard Rode
@BernhardRode
Feb 09 2016 13:54
You could just deploy the package.json and get it in your app =)
Andrew Lombardi
@kinabalu
Feb 09 2016 13:56
@BernhardRode perhaps, I was hoping to just read from it in a webpack phase or something
Bernhard Rode
@BernhardRode
Feb 09 2016 13:57
Should be possible by importing the JSON directly into your file (https://github.com/webpack/json-loader) don't know if this is included in the seed
Andrew Lombardi
@kinabalu
Feb 09 2016 13:59
hmm
Bernhard Rode
@BernhardRode
Feb 09 2016 14:15
I think having something like that in the codebase is always good.
For production apps, not todo apps ;)
Andrew Lombardi
@kinabalu
Feb 09 2016 14:15
i need to read more about how webpack works, i’m woefully inadequate to figure it out at this point
yes, important.
Oleg Sudavnyy
@acestudiooleg
Feb 09 2016 16:11
@fesor yes, I already used option - 'proxy'
Andrew Lombardi
@kinabalu
Feb 09 2016 17:02
omg that was too easy. VERSION ftw
nevermind, i suck :/
Andrew Lombardi
@kinabalu
Feb 09 2016 17:14
@fesor do you have any suggestions for angular and getting a div to stick to the top of hte page? not talking about nav which already does that, I need a set of stats to stay topmost and having no luck :(
Sergey Protko
@fesor
Feb 09 2016 19:04
@kinabalu you need something like https://github.com/d-oliveros/ngSticky
?
Andrew Lombardi
@kinabalu
Feb 09 2016 19:09
@fesor yes, if that works easily than I am golden