Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 22:41

    3cp on master

    chore: typo (compare)

  • 21:52

    EisenbergEffect on 2.0.0-rc.8

    (compare)

  • 21:42

    EisenbergEffect on master

    chore(all): prepare release 2.0… (compare)

  • 20:54

    EisenbergEffect on 1.2.0

    (compare)

  • 20:53

    EisenbergEffect on master

    chore(all): prepare release 1.2… (compare)

  • 02:05
    tomtomau edited #92
  • 02:04
    tomtomau edited #92
  • 02:03
    tomtomau edited #92
  • 02:02
    tomtomau synchronize #92
  • 01:48
    tomtomau opened #92
  • Sep 18 11:45
    jwx commented #804
  • Sep 18 11:10
    JontyMC commented #804
  • Sep 18 11:10
    JontyMC commented #804
  • Sep 18 10:31
    jwx commented #804
  • Sep 18 10:27
    jwx commented #804
  • Sep 18 10:07
    JontyMC commented #804
  • Sep 18 10:06
    JontyMC commented #804
  • Sep 17 22:22
    eriklieben commented #104
  • Sep 17 22:21
    eriklieben commented #104
  • Sep 17 21:28
    CedricMalfreytBL commented #163
Daniel Elebash
@delebash
@Mitranim you didn't and no worries
Nelo Mitranim
@Mitranim
Sublime Text with the official TS plugin is also decent but not as rich as the ones listed above
Charles Pockert
@charlespockert
its only really an editor, it doesnt know about other files
Nelo Mitranim
@Mitranim
Well that's not true when a TS plugin is involved
Daniel Elebash
@delebash
I like atoms TS support, I hope Webstorm follows suit, I think its just a matter of updating to fully comply with TS1.5 vs TS 1.4
Charles Pockert
@charlespockert
I've not had a look at those, not saying its bad, its actually quite impressive it completes just by looking at file content
atsu85
@atsu85

@delebash

are you using require in your import statements instead of the new Es6 style import statment?
Yes,
import auhc = require("aurelia-http-client");
and content assist + jump to declaration is working on following line (with jsonp function for example):
return this.http.jsonp(url).then(response => {

Charles Pockert
@charlespockert
such a simple way to support code completion on any file type
Nelo Mitranim
@Mitranim
VSC / Atom / ST hook into the official TS service that runs locally in background and scans your files looking for definitions
Don't know how WebStorm does this
probably same
Charles Pockert
@charlespockert
I'm installing it for VS2013 at the mo
Nelo Mitranim
@Mitranim
You'll also see the same TS error messages in these editors because they come from MS's language service
Daniel Elebash
@delebash
@atsu85 Yes that is why it still works if you where try the new TS 1.5 syntax it will not work, but no big deal using require until Webstorm updates to the new import syntax
atsu85
@atsu85

@delebash

I like atoms TS support,
last i checked it didn't support jump to declaration (but content assist worked fine)

Nelo Mitranim
@Mitranim
it does support that
atsu85
@atsu85

@Mitranim

VSC / Atom / ST hook into the official TS service that runs locally in background and scans your files looking for definitions

Eclipse Typescript plugin works the same way (https://github.com/axmor/typecs), sadly it's not updated to support TS1.5

Daniel Elebash
@delebash
TS1.5 seems like a lot of big changes and I think all the editors/ide's are trying to play catch up in supporting TS1.5 hopefully in a little why all the features will work as expected on all ide's.
atsu85
@atsu85

@cmichaelgraham, Yes, i got an error when i used "--emitDecoratorMetadata true" (don't know if it is the same as "--emitDecoratorMetadata" or maybe it works better - i could try it after few minutes to be sure)

So i can confirm that i get the same error with WebStorm + TS when using "--emitDecoratorMetadata" instead of "--emitDecoratorMetadata true"
error TS5023: Unknown compiler option 'emitdecoratormetadata'.

atsu85
@atsu85
@cmichaelgraham are You saying, that You don't have the same problem with WebStorm + TypeScript + @autoinject (and emitDecoratorMetadata argument)?
Mike Graham
@cmichaelgraham
i haven't ported the webstorm sample to ts 15 yet.
Aaike Van Roekeghem
@Aaike
@petr-k i'm glad to report i've got it working, but the VM's you create with the service need to be preloaded using globalizeResources or it wont work
i'm just trying to figure out now how to dynamically load the VMs
Ashley Grant
@AshleyGrant
For anybody interested in Aurelia and TypeScript, @cmichaelgraham and I will be doing a Google Hangout (most likely) in about 90 minutes to walk through getting Aurelia and Typescript up and running using Mike's bundle. I'll post links once we have them.. assuming everything works for the hangout :-)
Ashley Grant
@AshleyGrant
Alright everyone, get your youtubes ready!
Micah Zoltu
@MicahZoltu
What is the "right" way to do this sort of thing in Aurelia: http://getbootstrap.com/javascript/#modals-methods
In particular, is jquery lookup by id "right" or can I do some binding instead to make it more Aurelia like?
Hmm... maybe a ref property and then call .modal('show') on that?
Harilal K M
@harilal
Is it possible to arrange the files in a horizontal or vertical structure in Aurelia?
Micah Zoltu
@MicahZoltu
What do you mean?
Harilal K M
@harilal
I had created the navigation app using generator. Currently the js and html is placed in one folder src. Is it possible to divide like html in "templates" folder and the js files in "modal". or like keeping the templates and js files based on the functionality or module.
warrenbell
@warrenbell

Given an app module like this:

export class App {
  configureRouter(config, router){
    config.map([
      { route: '',  moduleId: './main', nav: true, title:'Welcome' }
    ]);

    this.router = router;
  }
}

and a main module like this:

export class Main {

  constructor(){
    // I need the app module router here 
  }

}

How do I get a hold of the router from my app module make it available in my main module ?

Micah Zoltu
@MicahZoltu
I believe you can, but I believe it will require more work from you.
@harilal
You will have to explicitly specify where the view can be found from the view-model.
(or maybe it is the other way around)
I suspect that in order for the conventions to work, you need the files side-by-side.
import { inject } from 'aurelia-framework';

@inject(Router)
export class Main {
    constructor(router) {
        this.router = router;
    }
}
@warrenbell
warrenbell
@warrenbell
That will get the specific router configured in my app module ?
Harilal K M
@harilal
is it possible to keep the files based on module? like for users module in users folder and for products module in products folder. If i keep files like the sample app i think it will get messy when teh application became bigger. @Zoltu
Micah Zoltu
@MicahZoltu
@warrenbell I know that in my application, I have a router and a child router. If I put that in a page that is routed to by the child router then I get the child router and if I put that in a page that is routed to by the main router I get the main router.
I am not entirely sure how it determines which router to inject, but it seems to "do the right thing". I suspect that it is looking for the most specific (child-most) router that ended up resolving the route in the end.
@harilal Yeah, I have broken up my project into several folders. The view and view-models pairs are all together (like user.html and user.js) but I have folders that divide up the logical parts of my project.
For example, you could put user.html, user.js and user.css all in a user subdirectory.
warrenbell
@warrenbell
Ok, then I can get parent router from the child router if I have one configured, thanks @Zoltu .
Micah Zoltu
@MicahZoltu
When you reference them, you would just do 'user/user'.
@warrenbell Yes, that is correct.
Harilal K M
@harilal
@Zoltu yes that's what i need. If i broke my project , will it need any change in my code. In the sample app, if i put the welcome files in a welcome folder , where i need to change ?
Micah Zoltu
@MicahZoltu
app.js, you need to change the moduleId for the welcome route.