javascript - What is a singleton object? -


i'm starting learn angularjs, , in one of initial tutorials singleton object mentioned.

i have never heard of this, one? , why use one?

it means class has 1 instance , provide global point of access it. singleton pattern limits number of instances of particular object 1 , single instance called singleton.


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -

how to run a query SQL in node.js mysql -