royco
royco

Reputation: 5529

How to use Aurelia Getting Started tutorial with TypeScript?

Aurelia has a getting started guide which covers using TypeScript and VS2015. I've downloaded the TypeScript Kit, and opened it as a website in VS2015. I can view index.html in a browser. However, when I edit app.ts, I don't see my changes when I reload index.html. I use VS2015 Community Edition with update 2. TypeScript is installed.

I'm missing something basic about how VS compiles TS into JS.

Any ideas?

[Edit] The JS console contains debug statements about several Aurelia plugins being loaded and configured. It then reports that Aurelia has started. Lastly, it says that resources are imported for app.html. I see no errors in the console.

Upvotes: 0

Views: 593

Answers (1)

royco
royco

Reputation: 5529

As @qtuan suggested, the problem was that the page was being cached. I initially thought this, and did Ctrl-F5 in Chrome on Windows to reload the page without using the cache. For some reason, this did not behave as expected and I saw the original page. When I ticked "Disable cache" in Chrome's Dev Toosl, under Network, then the page refreshed as expected.

Upvotes: 1

Related Questions