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
Diogo Afonso Barroso
@icylabsDev
can this work? I'm getting an error that elis not defined
got it
Diogo Afonso Barroso
@icylabsDev
hey @fesor I can it to work, but I have a problem if I try to do <exercise-template ng-if="false" template="{{vm.exercise.staticName}}"></exercise-template> I tries to render it, always.
even if the ng-if value is false
am i missing something?
i guess he is trying to run this before the ng-if
export function exerciseTemplateComponent(el,attr) {

  return {
    restrict: 'E',
    bindings: {
      template : '&'
    },
    templateUrl : function(el,attr) {
      console.log(attr.template);
      return `./app/templates/exercises/preview/${attr.template}.html`
    },
    controller,
    controllerAs: 'vm'
  }

}
  <exercise-template ng-if="false" template="{{vm.exercise.staticName}}"></exercise-template>
what can I do to fix this?
maybe check if template is valid? but does this code run only once? at the beginning?
Diogo Afonso Barroso
@icylabsDev
anyone?
well ok, I found a hack for this...
can't say I'm proud
  templateUrl : function(el,attr) {
      console.log(attr.template);
      if(attr.template == '{{vm.exercise.staticName}}'){
        return `./app/templates/exercises/preview/default.html`
      }else{
        return `./app/templates/exercises/preview/${attr.template}.html`
      }
    },
Diogo Afonso Barroso
@icylabsDev
that didnt work.
Sergey Protko
@fesor
@icylabsDev what do you mean?
Diogo Afonso Barroso
@icylabsDev
what I did there before
Sergey Protko
@fesor
what exaclty goes wrong with this? empty attr.template value?
Diogo Afonso Barroso
@icylabsDev
well I dont see any activity since 15:21
nop
I need to load the template dynamically several times.
And this is building the component immediately, resulting in a empty value {{vm.exercise.staticName}}
the only way I see it working is with the ng-include. which I understand it is not so pretty, but I need about 20 templates, and don't think that creating a component for them is also the best choice
? =)
Diogo Afonso Barroso
@icylabsDev
what is the difference between .directive() and .component()
Sergey Protko
@fesor
basicly it is simplified directives api to define components
Rem
@rem-kl
anyone tried using this architecture with Ionic? Not sure how to access the ionic services in the components
Diogo Afonso Barroso
@icylabsDev
what loader should I use for webpack for images with this stack?
Sergey Protko
@fesor
url-loader, file-loader
Diogo Afonso Barroso
@icylabsDev
thanks
you are always on duty @fesor =)
thanks
Sergey Protko
@fesor
@icylabsDev you can find more help in AngularClass slack channel
)
Diogo Afonso Barroso
@icylabsDev
oh ok
thanks
Diogo Afonso Barroso
@icylabsDev
I'm trying to test a website made with this stack on a mobile device and the clicks don't seem to fire. I'm reading that ng-click is deprecated now. is there some trick I need to do?
Oleg Sudavnyy
@acestudiooleg
Hi
who can tell me, how to include bootstrap stylus?
Sergey Protko
@fesor
Oleg Sudavnyy
@acestudiooleg
@fesor can you describe in details?
im trying last hour, but i can't
Sergey Protko
@fesor

@acestudiooleg

stylus-loader can also take advantage of webpack's resolve options. With the default options it'll find files in web_modules as well as node_modules, make sure to prefix any lookup in node_modules with ~. For example if you have a styles package lookup files in it like @import '~styles/my-styles.

Andrew Lombardi
@kinabalu
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
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
somebody know how include express server ?
Sergey Protko
@fesor
@acestudiooleg you want to replace browsersync with just simple express server?
Andrew Lombardi
@kinabalu
@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