npm v3.10 - ◾
If you are learning npm then i would suggest to go for yarn, dont waste your time in learning npm
npm install -g npm
# Downgrade to a specific version
| let str = "http://localhost:8086/#/menu/user" | |
| let index = str.lastIndexOf("/"); | |
| result = str.substr(index+1); //result "user" | |
| or | |
| let last = str.split("/").pop(); | |
| //Javascript ordem alfabetica do array | |
| var objArray = []; | |
| objArray.push({Id: 1, DepartmentName: 'ZMarketing', Active: true}); | |
| objArray.push({Id: 2, DepartmentName: 'Sales', Active: true}); | |
| objArray.push({Id: 3, DepartmentName: 'Development', Active: true}); | |
| objArray.push({Id: 4, DepartmentName: 'Accounting', Active: true}); | |
| objArray.sort(function(a, b) { | |
| var textA = a.DepartmentName.toUpperCase(); | |
| var textB = b.DepartmentName.toUpperCase(); |
| //Javascript extract especif information from objects array | |
| var array = [ {"name":"Joe", "age":17, "sex":"M"},{"name":"Bob", "age":17, "sex":"M"},{"name":"Carl", "age": 35, "sex":"M"}]; | |
| array.map(x => ({ | |
| label: x.name, | |
| value: x.age | |
| })); |
| AngularJS | |
| https://dncmagazine.blob.core.windows.net/downloads/AngularCheatSheet-DNCMagazine.pdf | |
| Angular | |
| https://github.com/sudheerj/angular-interview-questions |
| sass/ | |
| | | |
| |– base/ | |
| | |– _reset.scss # Reset/normalize | |
| | |– _typography.scss # Typography rules | |
| | ... # Etc… | |
| | | |
| |– components/ | |
| | |– _buttons.scss # Buttons | |
| | |– _carousel.scss # Carousel |
If you are learning npm then i would suggest to go for yarn, dont waste your time in learning npm
npm install -g npm
# Downgrade to a specific version
| https://dribbble.com/shots/3504343-Multi-level-dropdown | |
| https://cdn.dribbble.com/users/283116/screenshots/4926970/dribbble-2.png | |
| https://dribbble.com/shots/5281637-Tree-list-hierarchy/attachments | |
| https://dribbble.com/shots/4472000-Packaging-Hierarchy | |
| https://dribbble.com/shots/5286010-Sitemappin/attachments | |
| https://dribbble.com/shots/4069573-New-Hierarchy-Lines-in-Nima | |
| https://dribbble.com/shots/5528112-Bank-Commercial-Porfolio-My-Portfolio | |
| https://dribbble.com/shots/6764154-Hierarchy-Builder-Search-Bar | |
| https://dribbble.com/shots/4409160-Flow-Chart |
| https://cdn.dribbble.com/users/1256139/screenshots/6497090/dribbble3.png |
| //your component | |
| <div *ngTemplateOutlet="template"></div> | |
| @Input() template :TemplateRef<any>; | |
| //your module | |
| <ng-template #loading> | |
| <div>Loading...2</div> | |
| </ng-template> |
| constructor(private renderer: Renderer, private elem: ElementRef){} | |
| ngAfterViewInit(){ | |
| // you'll get your through 'elements' below code | |
| let elements = this.elem.nativeElement.querySelectorAll('.classImLookingFor'); | |
| } |