-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs(tutorial): bring up-to-date with latest angular-phonecat
/angular-seed
#16753
Conversation
20914b6
to
cb6aff6
Compare
docs/content/tutorial/index.ngdoc
Outdated
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]. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
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.
docs/content/tutorial/index.ngdoc
Outdated
|
||
### Updating dependencies | ||
|
||
In order to avoid surprizes, all dependencies listed in `package.json` are pinned to specific |
There was a problem hiding this comment.
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('!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this 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
cb6aff6
to
98129d7
Compare
@petebacondarwin, updated. PTAL |
20225ec
to
98129d7
Compare
Includes the following changes:
https
.bower
tonpm
and upgrade AngularJS to 1.7.x.getLocationAbsUrl()
withgetCurrentUrl()
.Related PRs: