akserg / dojo-ioc Goto Github PK
View Code? Open in Web Editor NEWInversion of control container for DOJO
License: Other
Inversion of control container for DOJO
License: Other
All Primitive classes (String, Number, Date, Array, Boolean) must have simple syntax to be instantiated:
"name" : { type : "String", args : ["Mickle"]} - "name" : "Mickle"
"version" : { type : "Number", args : [1000]} - "version" : 1000
"myBirthdate" : {type : "Date", "args" : ["01/02/2010"]} - "myBirthdate" : new Date("01/02/2010")
"anyTypes" : { type : "Array", args : ["1", 12, false] } - "anyTypes" : ["1", 12, false]
"isValid" : { type : "Boolean", args : [true] } - isValid : true
IE doesn't support Array.isArray() function.
We using 'ref' and 'prop' to organise access to property in instance in context files:
args : [{ref : "authenticationController", prop : "view"}]
but simple access to instance by name like that:
args : ["*authenticationController"]
Simplify that form to:
args : ["*authenticationController.view"]
with indefinite deep.
IE doesn't support null as second argument of apply method.
Initialisation method in definition must be called after finish class instantiation and assigning all properties. By default it must has name 'postInit' but might be changed in definition. It has two forms:
"authenticationService" : {
...
postInit : "otherInit"
}
"authenticationService" : {
...
postInit : {
"name" : "otherInit",
"args" : [list_of_arguments]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.