Comments (7)
Hi
Basically mean consists of 2 MVC platforms - the first which is implemented is related to the server side code (node.js/express) and it's is implemented in the app/views andthe second one is angularjs's MVC and it's code recides in public/views.
So youre clientside views go in public/views and the views created by node go in app/views
from mean.
Thank you, so why are the user pages server side? You could see them as clientside, or not?
from mean.
Sure you can but basically the idea is that some of the pages are delivered through nodjs and contain the reference to angular.
The core pages act that way and are (currently) dished out by node and templated by jade so you can see pages like sign.jade which act this way.
from mean.
I understand. I am trying to understand what the rationale is for some pages through node and others through angular, how do you make the distinction.
I guess this issue can be closed since there are are already two others.
from mean.
This is definitely a question I had too.
from mean.
First of all thank you for your comments.
One of mean main concepts is to use popular existing modules and frameworks for familiarity reasons, one of those modules is passport for authentication, passport uses oauth to authenticate so the entire login process need at least two views, of course I would of preferred to use nodejs solely as a REST machine, but for now we have to stick to the passport model.
from mean.
@amoshaviv I had the same desire and I'm trying to figure out a solution–see #121. I would appreciate any feedback!
from mean.
Related Issues (20)
- ERROR:Service 'app' failed to build: failed to register layer: Error processing tar file(exit status 1): write /usr/lib/gcc/x86_64-linux-gnu/6/lto1: no space left on device
- Try this command
- postman-1 HOT 1
- [nodemon] app crashed - waiting for file changes before starting...s before starting... HOT 2
- Nodemon crash HOT 1
- can't run the server side throw new Error(`Config validation error: ${error.message}`); [SERVER] ^ HOT 2
- \
- error HOT 1
- I have a problem with this issue . How I can solve this .
- [nodemon] app crashed - waiting for file changes before starting... HOT 1
- Problem in running server HOT 1
- Callback is not a function! issue HOT 1
- [nodemon] app crashed - waiting for file changes before starting...
- solucion de error...
- [nodemon] app crashed - waiting for file changes before starting
- ??
- The GitHub About description still says Angular 6 HOT 1
- app/auth/register typo
- Best practices for Next steps, please
- Troubles doing 'const customerSaved = await newCustomer.save()'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mean.