MCPcopy
hub / github.com/PatrickJS/NG6-starter / UserFactory

Function UserFactory

client/app/common/user/user.factory.js:1–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1let UserFactory = function () {
2 const user = {};
3
4 let getUser = () => {
5 return user;
6 };
7
8 let isSignedIn = () => {
9 return user.isSignedIn;
10 };
11
12 return { getUser, isSignedIn };
13};
14
15export default UserFactory;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected