Looking for test answers and solutions? Browse our comprehensive collection of verified answers for at moodle-miage-toulouse.westeurope.cloudapp.azure.com.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Combien de Thread peut-on utiliser avec JavaScript ?
Le code suivant permet de définir des routes internes à une SPA Angular :
const appRoutes: Routes = [ {pathName: 'date', component: DateComponent}, {pathName: 'hello/:nom', component: HelloComponent}, {pathName: '', redirectTo: 'date', pathMatch: 'full'}, {pathName: '**', redirectTo: 'date'}];Cochez tout ce qui est vrai pour le routage Angular
Le code suivant est correct pour Angular :
import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { HelloComponent } from './hello.component';import { DateComponent } from './date/date.component';import { HelloService } from './hello.service';export { HelloService } from './hello.service';@NgModule({ imports: [CommonModule], declarations: [HelloComponent, DateComponent, HelloService], exports: [HelloComponent, DateComponent], providers: []})export class PartageModule { }Le code suivant est correct pour Angular :
import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { HelloComponent } from './hello.component';import { DateComponent } from './date/date.component';import { HelloService } from './hello.service';export { HelloService } from './hello.service';@NgModule({ imports: [CommonModule], declarations: [HelloComponent], exports: [HelloComponent, DateComponent], providers: [HelloService]})export class PartageModule { }Le code suivant permet de définir un service Angular :
export class HelloService { private mots : string [] = []; constructor() { } addMot(mot : string) { this.mots.push(mot); } getMots() : string [] { return this.mots; }}Cochez tout ce qui est vrai pour l'application ng
Le code suivant est correct pour Angular :
import { Component, Input } from '@angular/core';@Component({ template: `<h1>Hello {{name}}!</h1>`})export class HelloComponent { @Input() name: string;}Le code suivant est correct pour Angular :
import { Component, OnInit } from '@angular/core';@Component({ selector: 'date-pipe', template: `<div> <p>On est le {{today | date}}</p> <p>Ou, si vous préférez, le {{today | date:'fullDate'}}</p> <p>Il est {{today | date:'H:mm'}}</p> </div>`})// Get the current date and time as a date-time value.export class DateComponent { today: number;}Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!