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.
Related
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.
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 5 years ago.
Improve this question
I need to implement a Microsoft Solution with Angular Js.
Solution have one Microsoft .Net Web Api for Crud operations, and MVC5 Project with angular js. I need an angular js grid where show data from web api json. I need i grid with paging and search. No inline editing functions.
I see ng-grid. Is it the best solution?
Thanks
ng-grid is good. Lots of functionality it has. you can also use smart table. Less functionality than ng-grid but too easy to use. the functionality you told I think all will be easily covered. Its a suggestion but ng-grid is fantastic with a lot of functionalities.
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!!
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!
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 want to add some JS functionality to our site. (wishlist, inquiry, ect) I think it would be nice for the UX that it is going to be build with some JS code
Do i need a JSframework like Angular, ember ect ? Or are JSframeworks only make sense for SPA like editing/backend tools?
That decision is up to you. AngularJS is awesome, but it's not really meant to be used for little pieces of a project. For my taste, I'd write everything with AngularJS. You probably want to check out Backbone if you want to only use it here and there.
From Backbonejs.org:
Philosophically, Backbone is an attempt to discover the minimal set of
data-structuring (models and collections) and user interface (views
and URLs) primitives that are generally useful when building web
applications with JavaScript. In an ecosystem where overarching,
decides-everything-for-you frameworks are commonplace, and many
libraries require your site to be reorganized to suit their look,
feel, and default behavior — Backbone should continue to be a tool
that gives you the freedom to design the full experience of your web
application.
Angular is more like the "overarching, decides-everything-for-you frameworks" it mentions.