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

docs(tutorial): bring up-to-date with latest angular-phonecat/angular-seed #16753

Closed
wants to merge 7 commits into from

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Nov 2, 2018

Includes the following changes:

  • Switch all links to https.
  • Switch from bower to npm and upgrade AngularJS to 1.7.x.
  • Replace getLocationAbsUrl() with getCurrentUrl().
  • Explain how to upgrade dependencies.
  • Mention that Protractor might need upgrading.

Related PRs:

If you want to run the preconfigured local web server and the test tools then you will also need
[Node.js v4+][node].
In order to install dependencies (such as the test tools and AngularJS itself) and run the
preconfigured local web server, you will also need [Node.js v4+][node].
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you check it works with node 4?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question 🤔

I did now and it doesn't work (because Protractor is not compatible with <6) 😞
But it does work with v6 (see link above), which I think it is more than reasonable 😃

I will change it to 6+. Good catch 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, updated angular/angular-phonecat#430 to test against v6 as well.


### Updating dependencies

In order to avoid surprizes, all dependencies listed in `package.json` are pinned to specific
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: surprises

@@ -203,10 +187,8 @@ code, we put it into a separate file and used the `.config` suffix.
```js
angular.
module('phonecatApp').
config(['$locationProvider', '$routeProvider',
function config($locationProvider, $routeProvider) {
$locationProvider.hashPrefix('!');
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

A few minor comments. Good stuff!

Protractor's `browser.getLocationAbsUrl()` has been deprecated and
`browser.getCurrentUrl()` is the recommended alternative.
Related: angular/angular-phonecat#430
Since Protractor requires specific WebDriver versions and these are only
compatible with specific browser version ranges, it is often necessary
to upgrade Protractor just so that it picks up a more recent WebDriver
version.
Related: angular#16739
@gkalpak gkalpak force-pushed the docs-tutorial-upgrade-to-1.7 branch from cb6aff6 to 98129d7 Compare November 5, 2018 12:39
@gkalpak
Copy link
Member Author

gkalpak commented Nov 5, 2018

@petebacondarwin, updated. PTAL

@gkalpak gkalpak force-pushed the docs-tutorial-upgrade-to-1.7 branch from 20225ec to 98129d7 Compare November 5, 2018 16:26
@gkalpak gkalpak closed this in 4f2b2b6 Nov 15, 2018
gkalpak added a commit that referenced this pull request Nov 15, 2018
Since Protractor requires specific WebDriver versions and these are only
compatible with specific browser version ranges, it is often necessary
to upgrade Protractor just so that it picks up a more recent WebDriver
version.
Related: #16739

Closes #16753
@gkalpak gkalpak deleted the docs-tutorial-upgrade-to-1.7 branch November 15, 2018 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants