Posts

Showing posts from October, 2019

angula rtree

Angular Tree: ts:     entitiesTree = [     {       title: 'Backlog',       child: [         {           title: '3A4 Backlog',           child: [             {               title: '3A4 Backlog'             }           ]         }       ]     },     {       title: 'Bill Of Material (BOM)',       child: [         {           title: 'dummy title'         }       ]     }   ];

async vs promise

    /////////////////////////////////////////////////////////////////////////////////////////////     //////////////////////////////////////// Async ////////////////////////////////////////////     /////////////////////////////////////////////////////////////////////////////////////////////     // const promise = fetch('https://jsonplaceholder.typicode.com/todos')     // promise     //     .then(res => res.json())             //     .then(data => console.log(data))     //     .catch(err => console.log(err))     const getBlogs = async (name) => {         const fruits = {             "one": "One 1",             "two": "Two 2",             "three": "Three 3"         }         await delay(2000);         return Promise.resolve(fruits[name]);     }     // for small     const makeMe = async () => {         try {             let a = getBlogs('one');      

Create README.md files

Create README File Online Tool:  https://www.makeareadme.com/ Dummy File.