update directive code samples and create new app.