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

docs($sce): clean up the docs #5551

Closed
wants to merge 1 commit into from
Closed

Conversation

CWSpear
Copy link
Contributor

@CWSpear CWSpear commented Dec 28, 2013

Include mention of ngSanitize (and add it to the example), as well as removing (and clarifying if needed) references to ng-html-bind-unsafe.

@IgorMinar
Copy link
Contributor

I'm sorry, but I wasn't able to verify your CLA signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let me know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@CWSpear
Copy link
Contributor Author

CWSpear commented Dec 28, 2013

I know I've signed it, but it must have been with another email address. I signed it again with this email address.

@IgorMinar
Copy link
Contributor

CLA signature verified! Thank you!

Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes).

@caitp
Copy link
Contributor

caitp commented Dec 28, 2013

Could you squash these and format the commit messages according to the commit message conventions so that when this gets merged nobody has to amend it? Thanks a bunch~


Also, re: your third commit, it appears to be incorrect. http://plnkr.co/edit/WQ8Q8h5HDsIOFluTaD26?p=preview shows that the constant HTML literal is actually trusted... Unless you mean without using ngSanitize

@CWSpear
Copy link
Contributor Author

CWSpear commented Dec 28, 2013

@caitp Yeah... I'm starting to really confuse myself. This started out as, "Hey, there are references to a directive that no longer exists," and it quickly turned into me making a mess of things, haha.

Ok, so re-reading the docs, it is very unclear that ngSanitize has anything to do with anything. As a matter of fact, ngSanitize isn't mentioned on that page at all! Except for the example tries include ngSanitize in the app module definition, but the code isn't included. If you try and edit the example in plnkr (http://plnkr.co/edit/p6ci8YfMFRAt6TaSADtn?p=preview) it fails because it can't find ngSanitize.

(No wonder I'm so confused!)

I am gonna see what I can do to try and clean this doc up (if I can make sure I can understand this properly) and clean up this PR.

@CWSpear
Copy link
Contributor Author

CWSpear commented Dec 28, 2013

@caitp Ok, so this was my first experience at squashing (or rebasing anything). It was exciting... and I think I got it right!

Anyway, I am not 100% sure the complete impact of ngSanitize on $sce (i.e. more clarification may be needed than what I added), but I clarified that one example as needing ngSanitize and added it as a dependency in the example.

Include mention of `ngSanitize` (and add it to the example), as well as removing (and clarifying if needed) references to `ng-html-bind-unsafe`.
@ghost ghost assigned matsko Dec 31, 2013
@caitp caitp closed this in 7ba30fd Jan 17, 2014
@caitp
Copy link
Contributor

caitp commented Jan 17, 2014

It would have been good to merge this a few releases ago! It passes tests and the docs look good locally, so this is nice, thanks

@CWSpear
Copy link
Contributor Author

CWSpear commented Jan 17, 2014

Haha, it's okay. Just glad I could help. I had a buddy ask about binding HTML, and we started going through the docs, and couldn't've been more confused. Finally figured out it was out of date docs!

jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
Include mention of `ngSanitize` (and add it to the example), as well as removing (and clarifying if
needed) references to `ng-html-bind-unsafe`.

Closes angular#5551
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
Include mention of `ngSanitize` (and add it to the example), as well as removing (and clarifying if
needed) references to `ng-html-bind-unsafe`.

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

4 participants