MEAN Web Development by Amos Q. Haviv
Author:Amos Q. Haviv [Haviv, Amos Q.]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2014-09-25T00:00:00+00:00
Now that you have AngularJS installed and included in the main application page, it is time to understand how to organize your AngularJS application's structure.
Structuring an AngularJS application
As you might remember from Chapter 3, Building an Express Web Application, your application's structure depends on the complexity of your application. We previously decided to use the horizontal approach for the entire MEAN application; however, as we stated before, MEAN applications can be constructed in various ways, and an AngularJS application structure is a different topic, which is often discussed by the community and the AngularJS development team. There are many doctrines for different purposes, some of which are a bit more complicated, while others offer a simpler approach. In this section, we'll introduce a recommended structure. Since AngularJS is a frontend framework, you'll use the public folder of our Express application as the root folder for the AngularJS application so that every file is available statically.
The AngularJS team offers several options to structure your application according to its complexity. A simple application will have a horizontal structure where entities are arranged in modules and folders according to their type, and a main application file is placed at the root folder of the application. An example application structure of that kind can be viewed in the following screenshot:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
ActiveX | ASP.NET |
Cold Fusion | CSS |
DHTML | Java Server Pages |
JavaScript | PHP |
Python | Ruby |
XSL |
Hello! Python by Anthony Briggs(9351)
The Mikado Method by Ola Ellnestam Daniel Brolund(9288)
Dependency Injection in .NET by Mark Seemann(8836)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7384)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7096)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6232)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5933)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5496)
Kotlin in Action by Dmitry Jemerov(4617)
Audition by Ryu Murakami(4076)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3776)
Functional Programming in JavaScript by Mantyla Dan(3712)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2821)
Svelte with Test-Driven Development by Daniel Irvine(2558)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2547)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2523)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2326)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(2216)
PHP 7 Data Structures and Algorithms by Mizanur Rahman(2193)