Skip to content

Instantly share code, notes, and snippets.

@imjoshdean
Last active August 29, 2015 14:09
Show Gist options
  • Save imjoshdean/4574287ec19527a77549 to your computer and use it in GitHub Desktop.
Save imjoshdean/4574287ec19527a77549 to your computer and use it in GitHub Desktop.
Nested can/map/define
var Example = Map.extend({ }, {
define: {
name: {
value: 'Nailed it'
}
}
});
var NestedMap = Map.extend({ }, {
define: {
isEnabled: {
value: true
},
test: {
Value: Example
},
examples: {
value: {
define: {
one: {
Value: Example
},
two: {
define: {
deep: {
Value: Example
}
}
}
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment