JavaScript

Smooth scrolling to anchors

Smooth scrolling to anchors

14.09.19
Very often on landing pages or on other long pages you can see a smooth scroll to the anchors. The layout of the navigation block looks like this: <ul class="nav-block"> <li><a href="#firstBlock"&...
Writing a filter in Vue.js

Writing a filter in Vue.js

08.09.19
Consider Vue 2. Filters in Vue are used to format text. Unlike Angular, where similar functionality is called pipes, Vue has no built-in filters. You need to write them yourself. Consider an example filter for removing...
Ways to Create Objects in JavaScript

Ways to Create Objects in JavaScript

04.08.19
There are several ways to create objects in JavaScript. The Object data type plays a critical role in JS. An object is an unordered set of key-value pairs. May contain other objects 1. Literal notation var someObject...
Promise in JavaScript

Promise in JavaScript

12.10.19
Promise in javascript is used for asynchronous operations For example function getInfo(url){ return new Promise((resolve, reject) => { $.ajax(url) .done(response => { ...
Package frontend-skeleton

Package frontend-skeleton

29.06.19
This package is configured to develop a frontend on sass (scss), typescript and pug. All done with gulp and webpack. Installation With Git git clone https://github.com/igorrybalko/frontend-skeleton.git With NPM...
[12 3 4  >>