V School | Better Humans, Better Outcomes

Angular Service Basics

Services Angular services are singletons. They can be used module or application wide. Services are where you should store data that you don't want to lose between screens and different controllers. We are going to cover basic services. There is also a provider service, and a factory service. They are

Modules

Shaping Your Program “A beginning programmer writes her programs like an ant builds her hill, one piece at a time, without thought for the bigger structure. Her programs will be like loose sand. They may stand for a while, but growing too big they fall apart. Realizing this problem, the

Objects

Objects are collections of properties and values. { name: 'Tommy Boy', age: 26, weight: 306, friends: ['Richard', 'Michelle'] } var person = { fullName: 'Tommy Boy', age: 26, weight: 306, friends: ['Richard', 'Michelle'] }; // Two ways to access the data at a object's property: console.log(person.age); console.log(person['age']); Objects vs Arrays

Arrays

Arrays are a data structure we can use to collect together multiple other pieces of data. Essentially, it's like a box that holds things inside in a specified order. Creating an array Arrays are created simply by surrounding the pieces of data you want in the array with square brackets

Why Angular?

Life Before Angular What was life like before Angular? It was like this: $('.' + className + '[' + attrLookup + '^=' + attrPrefix ']:not(.' + notClass + ')'); And like this: $('#something') .append('

Linky
') .append('
Linky
') .append(''); And a little bit like

V School | Better Humans, Better Outcomes © 2026