building angular apps using flux architecture