Skip to content

docs: remove TypeScript to JavaScript guide & sample - #18694

Merged
hansl merged 1 commit into
angular:masterfrom
IdeaBlade:docs-drop-ts-to-js
Aug 15, 2017
Merged

hansl merged 1 commit into
angular:masterfrom
IdeaBlade:docs-drop-ts-to-js

Conversation

@wardbell

@wardbell wardbell commented Aug 15, 2017 •

Copy link
Copy Markdown
Contributor

Remove "TypeScript to JavaScript" guide & sample

Deletes the guide (ts-to-js.md) and its entry from navigation.json
Replaces reference to this guide that happened to be in a comment of code.component.ts
Remaining files belong to the sample.

Requested by @juleskremer

@wardbell wardbell added comp: docs action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 15, 2017
@wardbell wardbell self-assigned this Aug 15, 2017
@wardbell
wardbell requested a review from juleskremer August 15, 2017 04:05
@juleskremer juleskremer added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 15, 2017
@wardbell wardbell added the target: patch This PR is targeted for the next patch release label Aug 15, 2017
@wardbell
wardbell force-pushed the docs-drop-ts-to-js branch from 574c2fb to a7374be Compare August 15, 2017 21:38
@mary-poppins

Copy link
Copy Markdown

@hansl
hansl merged commit 697c6ed into angular:master Aug 15, 2017
@wardbell
wardbell deleted the docs-drop-ts-to-js branch August 15, 2017 23:38
@elynnaie

Copy link
Copy Markdown

Took me a long time to track this down. Why was this page removed? Our company is going to start upgrading our app from AngularJS to Angular soon, and I bookmarked this page as the singularly most helpful page in all the docs. Without it, we won't know how to implement Angular concepts in JS, and a conversion to TS is not possible for us. Is there a replacement page that we can look at to guide us through the conversions?

@StephenFluin

Copy link
Copy Markdown
Contributor

@denaje Happy to answer any more questions about this, or jump on a call to understand your needs better.

This page still exists here: https://v2.angular.io/docs/ts/latest/cookbook/ts-to-js.html if you need to reference it.

We removed this page because based on conversations with our community, trying to do high performing Angular apps in ES5 was more difficult than switching to TypeScript as part of using the CLI.

Angular only really asks you to write "TypeScript" for the decorators (@component, @NgModule) for metadata, and for dependency injection. Your files will still be called .ts, but everything else you can written in ES2015 so you don't really need to learn anything new or change how you write code.

@elynnaie

elynnaie commented Sep 1, 2017

Copy link
Copy Markdown

@StephenFluin thanks for the link and explanation! We tried (and failed) to migrate our app to Angular v2 via a complete frontend rewrite. We couldn't figure out how to do everything in JS, and I think at the time that the cookbook you linked to may have been incomplete. Our decision for upcoming try #2 is to use the upgrade module to do the upgrade piecemeal. Hopefully that combined with your link will allow us to succeed this time.

Our problem with renaming file extensions and selectively using TypeScript for decorations and DI is because our code is all actually written in CoffeeScript, not raw JS. It may be possible to get this to work. We would love to switch to TS, but it doesn't seem feasible at the moment given we previously used CoffeeScript.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants