Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

added angular 1.x sample #22

Merged
merged 2 commits into from
Jun 23, 2015
Merged

added angular 1.x sample #22

merged 2 commits into from
Jun 23, 2015

Conversation

basarat
Copy link
Contributor

@basarat basarat commented Jun 19, 2015

As requested in #12

Details available in README.md : https://github.com/basarat/TypeScriptSamples/blob/angular1/angular1/README.md which is a part of this PR 🌹

```
and visit : http://localhost:8000/app/

## Upgrading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed for the readme? on another note "upgrading" sounded to vague to me.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 19, 2015

Thanks @basarat 🌻; just a few comments.

@basarat
Copy link
Contributor Author

basarat commented Jun 21, 2015

Addressed the comments:

  • Renamed Upgrading to Conversion as that is what its really documenting. Moved to a separate document "CONVERSION.md".
  • Updated readme to allow the user to run the commands from root instead of needed to cd into app / e2e-tests
  • Updated Description and homepage in package.json / bower.json
  • Ignored (and removed) the JS files
  • Removed redundant contents (files) from the app's tsconfig.json file. However the files listing is needed for the e2e tests as it links back to the files in the app directory which is outside the directory of the e2e-tests directory.
  • View1Ctrl => View1Controller (even though the name came from the official angular-seed project : https://github.com/angular/angular-seed/blob/master/app/view1/view1.js#L12-L14 .. I'm weary of changing their magic strings though ... don't want to make upgrading the sample difficult)

tsc --watch --p e2e-tests
```

That's it. You have typescript setup and ready to go. You can follow the steps of JavaScript ([README-JS](./README-JS.md)) from this point on in a new window starting at the install dependencies section.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: You can, then, follow the standard steps for seeded AngularJS web app in a new window, using README-JS starting at the section, Install Dependencies.

@yuit
Copy link

yuit commented Jun 23, 2015

Thanks @basarat. The instruction is very easy to follow when I tried it out :) Just small suggestions otherwise the PR look good 👍 🌷


angular.module('myApp.version.interpolate-filter', [])

.filter('interpolate', ['version', function(version) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be great if this sample worked under --noImplicitAny. Maybe in a future PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mhegazy
Copy link
Contributor

mhegazy commented Jun 23, 2015

Thanks again @basarat !

mhegazy added a commit that referenced this pull request Jun 23, 2015
@mhegazy mhegazy merged commit 8b9bb10 into microsoft:master Jun 23, 2015
@basarat basarat deleted the angular1 branch June 23, 2015 23:47
@basarat basarat mentioned this pull request Jun 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants