DOM vs Application [closed] - angularjs

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Recently in a tutorial it is said that Angularjs generates an application and not a DOM.
My question is what is the difference between DOM and application?
Thanks in advance,

DOM is the fundamental way that a browser presents the page content to Javascript and allows Javascript to interact with it.
Angularjs layers on top of this to provide higher level abstractions and isolate you from the DOM so you don't generally have to interact with it directly.
Asking what is DOM vs what is an application isn't really a question that makes any sense, the two are not comparable like that. DOM is an API used by javascript to manipulate the page. An application is a collection of code that does something useful.

Related

what is the difference between Angular JS and React JS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
want to know the difference between Angular JS and React JS. what are all the key features both of them has.
Can somebody guide me here.
Angular js
Two way binding
Uses observables to track changes
Contains many things internally just by installing angular that can be used Like http calls etc
React js
It has unidirectional flow
Uses virtual DOM concept.
For react we have to search for modules (still its easy to. We have lots and lots of modules already available)
Syntax aswell is different. :)

Angular Directive and component [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How to develop an app in angular? Also does it support JQUERY files?
I think directive is the best way.Because we can reuse the same.
Angular contains a subset of jquery functionality, so most of the more commonly used methods are still available (https://docs.angularjs.org/api/ng/function/angular.element)
Components in Angular 1.5 are similar to Directives, but Components are mainly used when you do not need to directly manipulate the DOM within the component, although you can use directives within components to do DOM manipulation. You can include other directives and components within a component, as well.
One is not better than the other, it just depends on what you are trying to accomplish. (https://docs.angularjs.org/guide/component)

How polymer increases efficiency of webpage and better than other framework like AngularJS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I was going through documentation of polymer project but didn't get to know how it can increase UX and efficiency of website.
Polymer
allows you to create reusable custom tags that can be used with different UI frameworks (Angular, GWT, ...)
data binding ({{ ... }})
event binding(on-eventName=...)
provides polyfills for browsers that don't fully support custom elements
provides a collection of great ready-to-use components (separate project though https://elements.polymer-project.org/)
...

It's possible to create embeddable AngularJS app based widget? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to create a AngularJS app that can be embed on 3rd-party websites with a few lines of code. Is it possible?
Yes, it is certainly possible. However, this means that the host page will have to know about angular js (unless you iframe the widget?) But otherwise, yes.
This will help you when using angular in a "3rd-Party" sense:
https://docs.angularjs.org/api/ng/service/$sce
SCE is strict contextual escaping. It helps scrub html and ensure that what is getting loaded in the page is safe. But read the link for more details.
To start it I would start by looking here:
http://alexmarandon.com/articles/web_widget_jquery/
I know this is jquery, but you can use the examples to figure out how to bootstrap your widget and get it loaded.
Good luck!

Does AngularJS fit into the (3)-tier architecture? [closed]

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 8 years ago.
Improve this question
This is rather an academical question but maybe someone can give me a hint here. What kind of architecture is AngularJS? First I thought about a 3-tier archtiecture:
Presentation-Layer: HTML5 / CSS
Application Layer: AngularJS
DataLayer: AngularJS (??)
...but thinking a while longer basically does this fit in a multi-tier architectural design pattern at all?
Because Angular has a two-way binding whereas changes within the view affect the model (data-layer) without going through an application layer here. Furthermore Angular directly touches the DOM. So I ended up with:
Presentation-Layer: AngularJS (manipulating DOM)
Application-Layer: AngularJS
Data-Layer: AngularJS
So how can AngularJS be described the in terms of design patterns?
AngularJS has an MVW structure model-view-"whatever works for you" link
So, you decide what you need it to be.

Resources