import { Component, ElementRef, ViewChild } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { ReactiveFormsModule } from '@angular/forms';
import { WebContainer } from '@webcontainer/api';
import { FormControl } from '@angular/forms';
export const files = {
'index.js': {
root = true
[*]
indent_style = space
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(()=> { | |
const myCart = []; | |
const products = []; | |
const limit = 2; | |
async function getProducts() { | |
const rta = await fetch('http://api.escuelajs.co/api/v1/products', { | |
mehtod: 'GET' | |
}); | |
const data = await rta.parseJson(); |
interface Task {
id: number;
title: string;
completed: boolean;
createdAt: Date;
}
interface CreateTaskDto extends Omit<Task, 'id' | 'createdAt'> {}
interface UpdateTaskDto extends Omit<Partial<Task>, 'id'> {}
We would love for you to contribute to Angular and help make it even better than it is today! As a contributor, here are the guidelines we would like you to follow:
NewerOlder