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

Add clarification on defining a controller in both the $routeProvider an... #4409

Closed
wants to merge 1 commit into from

Conversation

tylermcginnis
Copy link
Contributor

...d ng-controller

A common mistake for beginners is to define a controller in both the $routeProvider and also in the html document under the ng-controller directive. This clarification hopes to prevent developers from doing this in the future.

… and ng-controller

A common mistake for beginners is to define a controller in both the $routeProvider and also in the html document under the ng-controller directive. This clarification hopes to prevent developers from doing this in the future.
@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
A common mistake for beginners is to attach a controller in both the
$routeProvider and also in the html document using the ng-controller
directive. This change highlights this, to help prevent developers from
doing so in the future.

Closes angular#4409
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
A common mistake for beginners is to attach a controller in both the
$routeProvider and also in the html document using the ng-controller
directive. This change highlights this, to help prevent developers from
doing so in the future.

Closes angular#4409
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.

2 participants