Génère moi un hello world en Angular
- User
Génère moi un hello world en Angular
Assistant
Bien sûr, voici un exemple de code pour créer un "Hello World" en Angular :
- Créez un nouveau projet Angular en utilisant la commande
ng new my-appdans votre terminal. - Dans le fichier
src/app/app.component.html, ajoutez le code suivant :
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My App</title> </head> <body> <h1>Hello World!</h1> </body> </html>- Créez un nouveau projet Angular en utilisant la commande
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.