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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -