This question already has answers here:
Using Jquery UI plugin with Angular
(2 answers)
Closed 4 years ago.
According to the AngularJS documentation, JQLite is already a part of a base AngularJS package.
Does this mean I can include JQuery UI with the JQLite built into AnuglarJS? Or do I specifically have to use the full JQuery install?
There are many articles addressing specifically this question, but this one answers a lot
That being said, as long as you know what you're doing, you should be fine imo.
Related
This question already has answers here:
ng-app vs. data-ng-app, what is the difference?
(6 answers)
Closed 5 years ago.
I have been learning angular in part through this video. At several points the narrator mentions that he prefers placing data- before references to angular directives in HTML templates, e.g., <div data-ng-app="...">, <div data-ng-init="...">, etc. However, he doesn't explain this preference.
My question is: what is is the advantage/effect of preceding angular directives with data- in this way?
The only advantage is to have a valid HTML.
This question already has answers here:
What is the purpose of jQuery clean and cleanData methods?
(2 answers)
Closed 8 years ago.
I have to update some code using jquery and I have the following statements :
$.each($.clean({0:data}, this.ownerDocument), fct);
Where data is html content from server.
I didn't find any documentation about this method.
I just know that Jquery 1.9 remove it
Those methods are not meant to be used outside of jQuery, that's why you are having so much trouble finding documentation on them.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am newbie with client-side JavaScript. In one web project, I found about angularjs and use some basic on this. Should I learn jQuery or just use Angularjs for other project?
While learning AngularJS it is best not to include jQuery. Please note that I'm talking about the learning process here, not saying that you shouldn't use jQuery in your final project.
The philosophies and approaches of both libraries to UI construction (declarative AngularJS and imperative jQuery) are so different that you need to somehow unlearn many of the jQuery habits to get most of the AngularJS.
Leaving out jQuery during the learning process will "force" you to embrace the AngularJS way. When you've got full grasp of AngularJS you can start introducing jQuery in directives only.
For the broader discussion of the topic see "Thinking in AngularJS" if I have a jQuery background? but in short:
Start learning AngularJS without including jQuery.
You can get along fine with angular.js without using jQuery if you stick to it's core features.
If you want to include third party libraries in your project most of them use jQuery nowadays so you will get in touch with it one way or another.
Note that this situation "improves" as the angular folks are constantly porting those libraries to angular. E.g. bootstrap is ported in the angular-ui bootstrap project to native angular.js (http://angular-ui.github.io/bootstrap/).
One remaining issue is, that jQuery takes a lot of effort in supporting older browser version which angular.js does not. So while original bootstrap supports ie8 angular-ui's team decided not to.
My advice would be: start with plain angular.js and if the need for third party components arises decide if it's worth for you to include additional complexity with jQuery.
EDIT: Here is described how angular interacts with jQuery: AngularJS DOM selector
Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
A good Javascript API reference documentation related to browsers and DOM
I've searched Google a bit & can't find a good reference for DOM/Javascript. What I would like is a page that shows lists of all the objects & if you click them you get to see which methods and attributes they have.
What one is your favorite?
Sort of like this one for actionscript:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/class-summary.html
I use this: https://developer.mozilla.org/en-US/
I used this a while ago
http://www.java2s.com/Code/JavaScriptReference/CatalogJavaScriptReference.htm
This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Create similar to fb:tag
In addition to my question:
Create similar to fb:tag
I would like to ask if someone knows how did Facebook create fb:tags using xmlns.
Just technologies and some short explanation.
I might find the answers that I am looking for the other question as well!
xmlns is used just to make html valid xhtml, the functionality wont work just by adding fb:.. imported javascript is the on which process these tags