Initial ported Angular code