Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiation of Typescript classes is missing #1174

Closed
creaux opened this issue Feb 19, 2015 · 3 comments
Closed

Instantiation of Typescript classes is missing #1174

creaux opened this issue Feb 19, 2015 · 3 comments

Comments

@creaux
Copy link

creaux commented Feb 19, 2015

Hello, I'm pretty confused. I missed something maybe. In here https://github.com/tastejs/todomvc/blob/gh-pages/examples/typescript-angular/js/Application.ts are not instantiated typescript classes.

The compilation is pretty clear Typescript create Module Pattern from Class definition. So it has to be instantiated in case of creation main scope.

Thats why i'm not understand how can be reachable this line for example https://github.com/tastejs/todomvc/blob/gh-pages/examples/typescript-angular/js/controllers/TodoCtrl.ts#L53. It should be undefined.

@sindresorhus
Copy link
Member

@andreruffert

@andreruffert
Copy link
Contributor

Sorry I have no answer here. I'm not that much into typescript just ported the example to the new app UI.

@creaux
Copy link
Author

creaux commented Feb 27, 2015

I found the thing which I was looking for it has been caused by wrong undersanding. Class / compiled Module Pattern is instantiated inside of AngularJS.

@creaux creaux closed this as completed Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants