java spring and angular js code samples