-
Notifications
You must be signed in to change notification settings - Fork 25.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(angular1_router): support templateUrl components #6978
fix(angular1_router): support templateUrl components #6978
Conversation
Can you rebase? |
controller: getController(options), | ||
} | ||
}; | ||
if (options.template) definition.template = options.template; |
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.
Can we put this in a block?
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.
Right-oh!
ping @brandonroberts in case he has insights |
4146138
to
5f1270b
Compare
@btford I have updated, rebase and split the PR into three commits. |
0bc7f1b
to
a81db4e
Compare
@petebacondarwin can you fix formatting issues? https://travis-ci.org/angular/angular/jobs/108645402#L551 |
a81db4e
to
7b1b423
Compare
@btford rebased and fixed formatting issue |
d8d2237
to
0c679fc
Compare
Is this done? Is it the last blocker for angular1 router? |
We are waiting on it being merged into master. |
0c679fc
to
ff03a1a
Compare
The current router is passed to the current component via a binding. To indicate that this is an angular provided object, this commit renames the binding to `$router`. BREAKING CHANGE: The recently added binding of the current router to the current component has been renamed from `router` to `$router`. So now the recommended set up for your bindings in your routed component is: ```js { ... bindings: { $router: '<' } } ```
The singleton service that represents the top level router was called `$router` but this is confusing since there are actually lots of routers, which depend upon where you are in the DOM. This is similar to the situation with scopes. This commit clarifies this singleton by renaming it to `$rootRouter`. BREAKING CHANGE: The `$router` injectable service has been renamed to `$rootRouter`
This binding is never going to change so we can make it a one-time binding
ff03a1a
to
fc48884
Compare
Merging PR #6978 on behalf of @vsavkin to branch presubmit-vsavkin-pr-6978. |
Woohoo |
Could somebody please provide built ngComponentRouter in ES5 ? Or direct my to the docs where I can find how to build it. Thanks PS: really great job ! ;] |
@char0n See: angular/angular.js#12926 (comment) or use Pete's build from the sample repo |
@char0n Also see angular/angular.js#12926 (comment) for installing via npm. |
@brandonroberts, @alexgoldstone : thanks. Will try tommorow |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Closes #4633