I
I
IceJOKER2014-11-29 18:37:59
JavaScript
IceJOKER, 2014-11-29 18:37:59

Angular - what is the best way to implement it?

Hello, I recently studied angular.js and understood the basics, I would like to write a small realtime chat using angular and firebase, I would like to learn from experienced people how to best implement it?
File structure, implementation - we need recommendations / advice, not ready-made code.
How to use ng-include - create one html file index.html and then use ng-include or create several main html files?
I have experience in creating php projects, but I haven’t come across purely html / js projects, as well as js frameworks before, but separately I know both one and the other and the third

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2014-11-29
@mrRontgen

I would not use Firebase, but would figure out how WebSocket works (unless, of course, I want to figure out how realtile applications work in general). I would start writing a chat as you like (would create one html file or several - it doesn't matter). The main thing is to start, and then real questions would arise: how to do it, and how is it?

S
Sergey Romanov, 2014-11-30
@Serhioromano

How to use ng-include - create one html file index.html and then use ng-include or create several main html files?
I have experience in creating php projects, but I haven’t come across purely html / js projects, as well as js frameworks before, but separately I know both one and the other and the third

You can immediately see your base. Think server language.
In Angular, you just need to create a service that will receive a list of conversations and that's it. No need to update or even use the include. Just right in the main file list the correspondence. When adding a new message, simply send it to the server. It's all. The list will update itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question