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
Post a Comment