Angularjs Service — Value and Constant Services
Value Services Shorthand for factory with no parameters Cannot be injected into a module configuration function Can be overridden by an AngularJS decorator Example using value angular.module('app')...
View ArticleAngularjs directive
Directives are the most important feature of AngularJS . Before we jump into how to create custom directive, first to understand the relationship between directive Scope and controllers is very...
View ArticleReact & ES6 project dev enviroment setup
In this day, the JavaScript project set up it was a big complex, and this tutorial will show you how to set up the environment for build react SPA working with ES6. First, create package.json file,...
View ArticleAngular 2 Tutorial – movies App
Last time I wrote a blog created the MovieAPI and now I am using that API as back end services to create an angular 2 app. the final source code could find at my github repository. here is the link...
View ArticleBreaking the Records
Maria plays n games of college basketball in a season. Because she wants to go pro, she tracks her points scored per game sequentially in an array defined as score = [S0,S1,…,Sn-1] . After each game i...
View ArticleDay of the Programmer
Marie invented a Time Machine and wants to test it by time-traveling to visit Russia on the Day of the Day of the Programmer (the 256th day of the year) during a year in the inclusive range from 1700...
View Articlezigzag conversion leetcode
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility). Here is the solution using...
View Article