Click Here

in the example above the factory take one argument username and return a synch object , but in the controller Line 13 they passed a string that doesnt look like a username wich is "Agile Code Camp: Firebase Angular Sample App" why ? , and in the html also at Line 11 they print this synchronized id but it contain same username from the controller and not a hashed timestamp <h3>Edit {{ profile.$id }}</h3> ?? can sombody understand this code ?
that code is strange ! right ?

why in the following codepen i forked , when saving the object no hash ID is generated for the saved object instead it stores the username as the ID of the new object <h3>Edit {{ profile.$id }}</h3> will print Edit Agile Code Camp: Firebase Angular Sample App and not a hashed time stamp !!!?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.