working exapmle with angularfire