This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function flatten(arr, result) { | |
for(let i = 0; i < arr.length; i++){ | |
if(Array.isArray(arr[i])){ | |
flatten(arr[i], result) | |
}else { | |
result.push(arr[i]) | |
} | |
} | |
return result | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from ='personal-data'></require> | |
<require from ='child'></require> | |
<require from ='people'></require> | |
<h2>Simple App</h2> | |
<h5>Hi ${firstName}</h5> | |
<div repeat.for="people of peoples"> | |
<people firstname.bind="people.firstname" lastname.bind="people.lastname"></people> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name":"zooanimal 1", | |
"description" : "dfjkdjfkjdkfjkdfjkdfjk" | |
} | |
, | |
{ | |
"name":"zooanimal 1", | |
"description" : "dfjkdjfkjdkfjkdfjkdfjk" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name":"zooanimal 1", | |
"description" : "dfjkdjfkjdkfjkdfjkdfjk" | |
}, | |
{ | |
"name":"zooanimal 1", | |
"description" : "dfjkdjfkjdkfjkdfjkdfjk" | |
}, | |
{ |