Angular2 component vs Angularjs Directive [closed] - angularjs

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
Is there any similarity or difference in between angular2 component and Angularjs directive. It looks like these 2 are similar and common functionality in angular2 component and Angularjs directive.
At the same time angular2 also have a directive concept.

excerpts from ARCHITECTURE OVERVIEW
While a component is technically a directive, components are so
distinctive and central to Angular applications that this
architectural overview separates components from directives.
You may read about Components here & Directives here.
These explain the concepts quite in depth.
Hope this helps!!

Related

DOM vs Application [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 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.

How to use a component fromAngular (v7) in AngularJS (v1.6.10)? [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
I am looking for a solution on how to use a component/module/library developed in Angular (v7) in AngularJS (v1.6.10).
There are multiple examples available of making a hybrid app (containing one app code in another app). But I am looking for separate codebase for both the applications and exporting the component from Angular (v7) to be imported and downgrade as directive in AngularJS (v1.6.10) application.
you are on the wrong path. Angular 2+ is successfor of AngularJS and the framework is completely rewritten.
Short answer: you can't and you shouldn't use

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)

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