admin管理员组文章数量:1289603
I'm a little confuse with Ember.js, I don't understand some basic concepts related to Ember. I see on the official page that Ember is a client side framework.
The reason for this difference is due to Ruby on Rails being a server-side framework, whereas Ember is a client-side framework.
Ember Doc.
But at the same time, I know that Ember run under Node.js which is a server side framework.
It is also true that with Ember I can build the views and ponents for the user's interfaces.
So, I'm very confused, is Ember a server side framework, client framework or both?
Thanks.
I'm a little confuse with Ember.js, I don't understand some basic concepts related to Ember. I see on the official page that Ember is a client side framework.
The reason for this difference is due to Ruby on Rails being a server-side framework, whereas Ember is a client-side framework.
Ember Doc.
But at the same time, I know that Ember run under Node.js which is a server side framework.
It is also true that with Ember I can build the views and ponents for the user's interfaces.
So, I'm very confused, is Ember a server side framework, client framework or both?
Thanks.
Share Improve this question edited Mar 6, 2017 at 22:03 nem035 35.5k6 gold badges92 silver badges104 bronze badges asked Mar 6, 2017 at 21:47 fingerprintsfingerprints 2,9701 gold badge29 silver badges50 bronze badges2 Answers
Reset to default 7Server-side rendering is different than server-side framework.
What we have generally in a server-side framework:
- Data source access (database access)
- Transaction management
- Security management
- Scheduled tasks
What we have generally in a client-side framework:
- Displaying data
- Dealing with user input
So as a result, Ember.js is client-side framework.
Of course, you can access data sources (such as pouchdb) from ember.js or you need to implement a security policy in client-side. But those are not the case, core implementation for a security has to be done in server-side.
Ember.js has two options about rendering UI:
- Client-side rendering: rendering are placed in user's browser.
- Server-side rendering: rendering are placed in a server than results are send to the client's browser. (via fastboot)
Ember is a client side framework, primarily used to write Single Page Applications for the Web platform.
Ember uses Node as a tool to improve the development process and developer productivity with NPM and an acpanying CLI tool called Ember-CLI. This tool includes things like building the application scripts, installing dependencies, bining resources, using a live-reloading development server etc. That being said, you could build an Ember application without ever using Node, it's just more work you would need to do on your own.
Ember also supports rendering its views on the server via Fastboot.
本文标签: javascriptEmberjs server side or client side or bothStack Overflow
版权声明:本文标题:javascript - Ember.js server side or client side or both? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741458719a2379907.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论