angularJs Implementation.