Angular Service Example

See source code

Controller 1

firstName : {{firstName}}

lastName : {{lastName}}

fullName : {{fullName}}

Controller 2

firstName : {{firstName}}

lastName : {{lastName}}

fullName : {{fullName}}