{"id":1301,"date":"2023-09-22T13:36:59","date_gmt":"2023-09-22T11:36:59","guid":{"rendered":"https:\/\/epicmarketing.co.il\/notebook\/?p=1301"},"modified":"2023-09-22T13:39:15","modified_gmt":"2023-09-22T11:39:15","slug":"full-db-project","status":"publish","type":"post","link":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/","title":{"rendered":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d9\u05e6\u05d5\u05e8 \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng new crud-app --routing\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05ea\u05e7\u05d9\u05df \u05d0\u05ea bootstrap \u05db\u05d3\u05d9 \u05e9\u05d9\u05d4\u05d9\u05d4 \u05e7\u05dc \u05d9\u05d5\u05ea\u05e8 \u05dc\u05e2\u05e6\u05d1 \u05d0\u05ea \u05d4\u05d3\u05e4\u05d9\u05dd.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nnpm install bootstrap\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05d5\u05dc \u05dc\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d5\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng generate module post --routing\n\nng generate component post\/index\nng generate component post\/view\nng generate component post\/create\nng generate component post\/edit\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea routes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/post-routing.module.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; highlight: [8,9,10,11,12,13,14]; title: ; notranslate\" title=\"\">\nimport { NgModule } from &#039;@angular\/core&#039;;\nimport { Routes, RouterModule } from &#039;@angular\/router&#039;;\nimport { IndexComponent } from &#039;.\/index\/index.component&#039;;\nimport { ViewComponent } from &#039;.\/view\/view.component&#039;;\nimport { CreateComponent } from &#039;.\/create\/create.component&#039;;\nimport { EditComponent } from &#039;.\/edit\/edit.component&#039;;\n\nconst routes: Routes = &#x5B;\n  { path: &#039;post&#039;, redirectTo: &#039;post\/index&#039;, pathMatch: &#039;full&#039;},\n  { path: &#039;post\/index&#039;, component: IndexComponent },\n  { path: &#039;post\/:postId\/view&#039;, component: ViewComponent },\n  { path: &#039;post\/create&#039;, component: CreateComponent },\n  { path: &#039;post\/:postId\/edit&#039;, component: EditComponent } \n];\n  \n@NgModule({\n  imports: &#x5B;RouterModule.forChild(routes)],\n  exports: &#x5B;RouterModule]\n})\nexport class PostRoutingModule { }\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e0\u05d9\u05e6\u05d5\u05e8 interface \u05e9\u05d9\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d4\u05d6\u05d4.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng generate interface post\/post\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/post.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport interface Post {\n    id: number;\n    title: string;\n    body: string;\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05d4-service<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng generate service post\/post\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/post.service.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { Injectable } from &#039;@angular\/core&#039;;\nimport { HttpClient, HttpHeaders } from &#039;@angular\/common\/http&#039;;\n     \nimport {  Observable, throwError } from &#039;rxjs&#039;;\nimport { catchError } from &#039;rxjs\/operators&#039;;\n  \nimport { Post } from &#039;.\/post&#039;;\n  \n@Injectable({\n  providedIn: &#039;root&#039;\n})\nexport class PostService {\n  \n  private apiURL = &quot;https:\/\/jsonplaceholder.typicode.com&quot;;\n    \n  \/*------------------------------------------\n  Http Header Options\n  --------------------------------------------*\/\n  httpOptions = {\n    headers: new HttpHeaders({\n      &#039;Content-Type&#039;: &#039;application\/json&#039;\n    })\n  }\n   \n  \/*------------------------------------------\n  Created constructor\n  --------------------------------------------*\/\n  constructor(private httpClient: HttpClient) { }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  getAll(): Observable&lt;any&gt; {\n    return this.httpClient.get(this.apiURL + &#039;\/posts\/&#039;)\n    .pipe(\n      catchError(this.errorHandler)\n    )\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  create(post:Post): Observable&lt;any&gt; {\n    return this.httpClient.post(this.apiURL + &#039;\/posts\/&#039;, \n    JSON.stringify(post), this.httpOptions)\n    .pipe(\n      catchError(this.errorHandler)\n    )\n  }  \n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  find(id:number): Observable&lt;any&gt; {\n    return this.httpClient.get(this.apiURL + &#039;\/posts\/&#039; + id)\n    .pipe(\n      catchError(this.errorHandler)\n    )\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  update(id:number, post:Post): Observable&lt;any&gt; {\n    return this.httpClient.put(this.apiURL + &#039;\/posts\/&#039; + id, \n    JSON.stringify(post), this.httpOptions)\n    .pipe( \n      catchError(this.errorHandler)\n    )\n  }\n       \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  delete(id:number){\n    return this.httpClient.delete(this.apiURL + &#039;\/posts\/&#039; + id, \n     this.httpOptions)\n    .pipe(\n      catchError(this.errorHandler)\n    )\n  }\n      \n  \/** \n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  errorHandler(error:any) {\n    let errorMessage = &#039;&#039;;\n    if(error.error instanceof ErrorEvent) {\n      errorMessage = error.error.message;\n    } else {\n      errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\n    }\n    return throwError(errorMessage);\n }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05dc\u05d5\u05d2\u05d9\u05e7\u05d4 \u05d5\u05d4\u05d8\u05de\u05e4\u05dc\u05d8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05e8\u05d0\u05e9\u05d9 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05db\u05dc \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd. \u05d1\u05e8\u05e9\u05d9\u05de\u05d4 \u05e0\u05e6\u05d9\u05d2 \u05dc\u05db\u05dc \u05e4\u05d5\u05e1\u05d8 \u05d0\u05ea \u05d4-ID, \u05d4\u05db\u05d5\u05ea\u05e8\u05ea \u05d5\u05d4\u05ea\u05d5\u05db\u05df. \u05dc\u05db\u05dc \u05e4\u05d5\u05e1\u05d8 \u05d9\u05d4\u05d9\u05d5 3 \u05db\u05e4\u05ea\u05d5\u05e8\u05d9\u05dd, \u05e6\u05e4\u05d9\u05d9\u05d4 \u05d1\u05ea\u05d5\u05db\u05df \u05d4\u05e4\u05d5\u05e1\u05d8, \u05e2\u05e8\u05d9\u05db\u05d4 \u05d5\u05de\u05d7\u05d9\u05e7\u05d4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d1\u05e7\u05d5\u05d1\u05e5 ts \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05db\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05de\u05d4-service. \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05d6\u05d4 \u05d2\u05dd \u05e0\u05d2\u05d3\u05d9\u05e8 \u05d0\u05ea \u05e4\u05e2\u05d5\u05dc\u05ea \u05d4-delete \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05e4\u05e2\u05d5\u05dc\u05d4 \u05d4\u05d6\u05d0\u05ea \u05dc\u05d0 \u05e9\u05d5\u05dc\u05d7\u05ea \u05dc\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4 \u05d0\u05d7\u05e8\u05ea \u05dc\u05d1\u05d9\u05e6\u05d5\u05e2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/index\/index.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { Component, OnInit } from &#039;@angular\/core&#039;;\nimport { PostService } from &#039;..\/post.service&#039;;\nimport { Post } from &#039;..\/post&#039;;\n      \n@Component({\n  selector: &#039;app-index&#039;,\n  templateUrl: &#039;.\/index.component.html&#039;,\n  styleUrls: &#x5B;&#039;.\/index.component.css&#039;]\n})\nexport class IndexComponent implements OnInit {\n      \n  posts: Post&#x5B;] = &#x5B;];\n    \n  \/*------------------------------------------\n  Created constructor\n  --------------------------------------------*\/\n  constructor(public postService: PostService) { }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  ngOnInit(): void {\n    this.postService.getAll().subscribe((data: Post&#x5B;])=&gt;{\n      this.posts = data;\n      console.log(this.posts);\n    })  \n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  deletePost(id:number){\n    this.postService.delete(id).subscribe(res =&gt; {\n         this.posts = this.posts.filter(item =&gt; item.id !== id);\n         console.log(&#039;Post deleted successfully!&#039;);\n    })\n  }\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4-html \u05e0\u05e6\u05d9\u05d2 \u05d0\u05ea \u05d4\u05d8\u05d1\u05dc\u05d4 \u05e2\u05dd \u05db\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd. \u05d1\u05e2\u05de\u05d5\u05d3 \u05d4\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d2\u05dd \u05db\u05e4\u05ea\u05d5\u05e8 \u05dc\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05d5\u05e1\u05d8 \u05d7\u05d3\u05e9.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/index\/index.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;container&quot;&gt;\n    &lt;h1&gt;All Posts&lt;\/h1&gt;\n    \n    &lt;a href=&quot;#&quot; routerLink=&quot;\/post\/create\/&quot; class=&quot;btn btn-success&quot;&gt;\n        Create New Post&lt;\/a&gt;\n      \n    &lt;table class=&quot;table table-striped&quot;&gt;\n        &lt;thead&gt;\n              &lt;tr&gt;\n                &lt;th&gt;ID&lt;\/th&gt;\n                &lt;th&gt;Title&lt;\/th&gt;\n                &lt;th&gt;Body&lt;\/th&gt;\n                &lt;th width=&quot;250px&quot;&gt;Action&lt;\/th&gt;\n              &lt;\/tr&gt;\n        &lt;\/thead&gt;\n        &lt;tbody&gt;\n              &lt;tr *ngFor=&quot;let post of posts&quot;&gt;\n                &lt;td&gt;{{ post.id }}&lt;\/td&gt;\n                &lt;td&gt;{{ post.title }}&lt;\/td&gt;\n                &lt;td&gt;{{ post.body }}&lt;\/td&gt;\n                &lt;td&gt;\n                  &lt;a href=&quot;#&quot; &#x5B;routerLink]=&quot;&#x5B;&#039;\/post\/&#039;, post.id, &#039;view&#039;]&quot; \n                     class=&quot;btn btn-info&quot;&gt;View&lt;\/a&gt;\n                  &lt;a href=&quot;#&quot; &#x5B;routerLink]=&quot;&#x5B;&#039;\/post\/&#039;, post.id, &#039;edit&#039;]&quot; \n                     class=&quot;btn btn-primary&quot;&gt;Edit&lt;\/a&gt;\n                  &lt;button type=&quot;button&quot; (click)=&quot;deletePost(post.id)&quot; \n                      class=&quot;btn btn-danger&quot;&gt;Delete&lt;\/button&gt;\n                &lt;\/td&gt;\n              &lt;\/tr&gt;\n        &lt;\/tbody&gt;\n    &lt;\/table&gt;\n &lt;\/div&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05d5\u05e1\u05d8 \u05d7\u05d3\u05e9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d9\u05e6\u05d5\u05e8 \u05d8\u05d5\u05e4\u05e1 \u05dc\u05e7\u05d1\u05dc \u05d0\u05ea \u05e0\u05ea\u05d5\u05e0\u05d9 \u05d4\u05e4\u05d5\u05e1\u05d8 \u05d5\u05e0\u05e9\u05de\u05d5\u05e8 \u05d0\u05d5\u05ea\u05d5.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/create\/create.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { Component, OnInit } from &#039;@angular\/core&#039;;\nimport { PostService } from &#039;..\/post.service&#039;;\nimport { Router } from &#039;@angular\/router&#039;;\nimport { FormGroup, FormControl, Validators} from &#039;@angular\/forms&#039;;\n     \n@Component({\n  selector: &#039;app-create&#039;,\n  templateUrl: &#039;.\/create.component.html&#039;,\n  styleUrls: &#x5B;&#039;.\/create.component.css&#039;]\n})\nexport class CreateComponent implements OnInit {\n    \n  form!: FormGroup;\n    \n  \/*------------------------------------------\n  Created constructor\n  --------------------------------------------*\/\n  constructor(public postService: PostService, private router: Router) { }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  ngOnInit(): void {\n    this.form = new FormGroup({\n      title: new FormControl(&#039;&#039;, &#x5B;Validators.required]),\n      body: new FormControl(&#039;&#039;, Validators.required)\n    });\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  get f(){\n    return this.form.controls;\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  submit(){\n    console.log(this.form.value);\n    this.postService.create(this.form.value).subscribe((res:any) =&gt; {\n         console.log(&#039;Post created successfully!&#039;);\n         this.router.navigateByUrl(&#039;post\/index&#039;);\n    })\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d4\u05e7\u05d5\u05d1\u05e5 \u05e9\u05de\u05e6\u05d9\u05d2 \u05d0\u05ea \u05d4\u05d8\u05d5\u05e4\u05e1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/create\/create.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;container&quot;&gt;\n    &lt;h1&gt;Create New Post&lt;\/h1&gt;\n  \n    &lt;a href=&quot;#&quot; routerLink=&quot;\/post\/index&quot; class=&quot;btn btn-primary&quot;&gt;Back&lt;\/a&gt;\n        \n    &lt;form &#x5B;formGroup]=&quot;form&quot; (ngSubmit)=&quot;submit()&quot;&gt;\n        &lt;div class=&quot;form-group&quot;&gt;\n            &lt;label for=&quot;title&quot;&gt;Title:&lt;\/label&gt;\n            &lt;input \n                formControlName=&quot;title&quot;\n                id=&quot;title&quot; \n                type=&quot;text&quot; \n                class=&quot;form-control&quot;&gt;\n            &lt;div *ngIf=&quot;f&#x5B;&#039;title&#039;].touched &amp;&amp; f&#x5B;&#039;title&#039;].invalid&quot; class=&quot;alert alert-danger&quot;&gt;\n                &lt;div *ngIf=&quot;f&#x5B;&#039;title&#039;].errors &amp;&amp; f&#x5B;&#039;title&#039;].errors&#x5B;&#039;required&#039;]&quot;&gt;\n                    Title is required.&lt;\/div&gt;\n            &lt;\/div&gt;\n        &lt;\/div&gt;\n  \n        &lt;div class=&quot;form-group&quot;&gt;\n            &lt;label for=&quot;body&quot;&gt;Body&lt;\/label&gt;\n            &lt;textarea \n                formControlName=&quot;body&quot;\n                id=&quot;body&quot; \n                type=&quot;text&quot; \n                class=&quot;form-control&quot;&gt;\n            &lt;\/textarea&gt;\n            &lt;div *ngIf=&quot;f&#x5B;&#039;body&#039;].touched &amp;&amp; f&#x5B;&#039;body&#039;].invalid&quot; class=&quot;alert alert-danger&quot;&gt;\n                &lt;div *ngIf=&quot;f&#x5B;&#039;body&#039;].errors &amp;&amp; f&#x5B;&#039;body&#039;].errors&#x5B;&#039;required&#039;]&quot;&gt;Body is required.&lt;\/div&gt;\n            &lt;\/div&gt;\n        &lt;\/div&gt;\n  \n        &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot; &#x5B;disabled]=&quot;!form.valid&quot;&gt;Submit&lt;\/button&gt;\n    &lt;\/form&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05e2\u05e8\u05d9\u05db\u05ea \u05e4\u05d5\u05e1\u05d8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d1\u05d8\u05d5\u05e4\u05e1 \u05d4\u05e2\u05e8\u05d9\u05db\u05d4 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05e0\u05ea\u05d5\u05e0\u05d9 \u05d4\u05e4\u05d5\u05e1\u05d8 \u05d4\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d5\u05e0\u05e2\u05e8\u05d5\u05da \u05d0\u05d5\u05ea\u05dd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/edit\/edit.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { Component, OnInit } from &#039;@angular\/core&#039;;\nimport { PostService } from &#039;..\/post.service&#039;;\nimport { ActivatedRoute, Router } from &#039;@angular\/router&#039;;\nimport { Post } from &#039;..\/post&#039;;\nimport { FormGroup, FormControl, Validators} from &#039;@angular\/forms&#039;;\n     \n@Component({\n  selector: &#039;app-edit&#039;,\n  templateUrl: &#039;.\/edit.component.html&#039;,\n  styleUrls: &#x5B;&#039;.\/edit.component.css&#039;]\n})\nexport class EditComponent implements OnInit {\n      \n  id!: number;\n  post!: Post;\n  form!: FormGroup;\n    \n  \/*------------------------------------------\n  Created constructor\n  --------------------------------------------*\/\n  constructor(\n    public postService: PostService,\n    private route: ActivatedRoute,\n    private router: Router\n  ) { }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  ngOnInit(): void {\n    this.id = this.route.snapshot.params&#x5B;&#039;postId&#039;];\n    this.postService.find(this.id).subscribe((data: Post) =&gt; {\n      this.post = data;\n    }); \n      \n    this.form = new FormGroup({\n      title: new FormControl(&#039;&#039;, &#x5B;Validators.required]),\n      body: new FormControl(&#039;&#039;, Validators.required)\n    });\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  get f(){\n    return this.form.controls;\n  }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  submit(){\n    console.log(this.form.value);\n    this.postService.update(this.id, this.form.value).subscribe((res:any) =&gt; {\n         console.log(&#039;Post updated successfully!&#039;);\n         this.router.navigateByUrl(&#039;post\/index&#039;);\n    })\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d4\u05e6\u05d2\u05ea \u05d4\u05d8\u05d5\u05e4\u05e1 \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4-html.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>products.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;container&quot;&gt;\n    &lt;h1&gt;Update Post&lt;\/h1&gt;\n   \n    &lt;a href=&quot;#&quot; routerLink=&quot;\/post\/index&quot; class=&quot;btn btn-primary&quot;&gt;Back&lt;\/a&gt;\n          \n    &lt;form &#x5B;formGroup]=&quot;form&quot; (ngSubmit)=&quot;submit()&quot;&gt;\n    \n        &lt;div class=&quot;form-group&quot;&gt;\n            &lt;label for=&quot;title&quot;&gt;Title:&lt;\/label&gt;\n            &lt;input \n                formControlName=&quot;title&quot;\n                id=&quot;title&quot; \n                type=&quot;text&quot; \n                &#x5B;(ngModel)]=&quot;post.title&quot;\n                class=&quot;form-control&quot;&gt;\n            &lt;div *ngIf=&quot;f&#x5B;&#039;title&#039;].touched &amp;&amp; f&#x5B;&#039;title&#039;].invalid&quot; class=&quot;alert alert-danger&quot;&gt;\n                &lt;div *ngIf=&quot;f&#x5B;&#039;title&#039;].errors &amp;&amp; f&#x5B;&#039;title&#039;].errors&#x5B;&#039;required&#039;]&quot;&gt;\n                    Title is required.&lt;\/div&gt;\n            &lt;\/div&gt;\n        &lt;\/div&gt;\n           \n        &lt;div class=&quot;form-group&quot;&gt;\n            &lt;label for=&quot;body&quot;&gt;Body&lt;\/label&gt;\n            &lt;textarea \n                formControlName=&quot;body&quot;\n                id=&quot;body&quot; \n                type=&quot;text&quot; \n                &#x5B;(ngModel)]=&quot;post.body&quot;\n                class=&quot;form-control&quot;&gt;\n            &lt;\/textarea&gt;\n            &lt;div *ngIf=&quot;f&#x5B;&#039;body&#039;].touched &amp;&amp; f&#x5B;&#039;body&#039;].invalid&quot; class=&quot;alert alert-danger&quot;&gt;\n                &lt;div *ngIf=&quot;f&#x5B;&#039;body&#039;].errors &amp;&amp; f&#x5B;&#039;body&#039;].errors&#x5B;&#039;required&#039;]&quot;&gt;Body is required.&lt;\/div&gt;\n            &lt;\/div&gt;\n        &lt;\/div&gt;\n         \n        &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot; &#x5B;disabled]=&quot;!form.valid&quot;&gt;Update&lt;\/button&gt;\n    &lt;\/form&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05e2\u05de\u05d5\u05d3 \u05e4\u05e8\u05d8\u05d9 \u05e4\u05d5\u05e1\u05d8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05d0\u05df \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05d5\u05e0\u05e6\u05d9\u05d2 \u05d0\u05d5\u05ea\u05dd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/view\/view.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { Component, OnInit } from &#039;@angular\/core&#039;;\nimport { PostService } from &#039;..\/post.service&#039;;\nimport { ActivatedRoute, Router } from &#039;@angular\/router&#039;;\nimport { Post } from &#039;..\/post&#039;;\n    \n@Component({\n  selector: &#039;app-view&#039;,\n  templateUrl: &#039;.\/view.component.html&#039;,\n  styleUrls: &#x5B;&#039;.\/view.component.css&#039;]\n})\nexport class ViewComponent implements OnInit {\n  id!: number;\n  post!: Post;\n    \n  \/*------------------------------------------\n  Created constructor\n  --------------------------------------------*\/\n  constructor(\n    public postService: PostService,\n    private route: ActivatedRoute,\n    private router: Router\n   ) { }\n    \n  \/**\n   * Write code on Method\n   *\n   * @return response()\n   *\/\n  ngOnInit(): void {\n    this.id = this.route.snapshot.params&#x5B;&#039;postId&#039;];\n        \n    this.postService.find(this.id).subscribe((data: Post) =&gt; {\n      this.post = data;\n    });\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e6\u05d9\u05d2 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/post\/view\/view.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;container&quot;&gt;\n    &lt;h1&gt;View Post&lt;\/h1&gt;\n  \n    &lt;a href=&quot;#&quot; routerLink=&quot;\/post\/index&quot; class=&quot;btn btn-primary&quot;&gt;Back&lt;\/a&gt;\n   \n    &lt;div&gt;\n        &lt;strong&gt;ID:&lt;\/strong&gt;\n        &lt;p&gt;{{ post.id }}&lt;\/p&gt;\n    &lt;\/div&gt;\n   \n    &lt;div&gt;\n        &lt;strong&gt;Title:&lt;\/strong&gt;\n        &lt;p&gt;{{ post.title }}&lt;\/p&gt;\n    &lt;\/div&gt;\n   \n    &lt;div&gt;\n        &lt;strong&gt;Body:&lt;\/strong&gt;\n        &lt;p&gt;{{ post.body }}&lt;\/p&gt;\n    &lt;\/div&gt;\n   \n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd \u05d0\u05d7\u05e8\u05d5\u05e0\u05d9\u05dd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d1\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d9 \u05e9\u05dc \u05d4\u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05e0\u05de\u05d7\u05e7 \u05d0\u05ea \u05db\u05dc \u05d4\u05ea\u05d5\u05db\u05df \u05d5\u05e0\u05e9\u05d0\u05d9\u05e8 \u05e8\u05e7 \u05d0\u05ea \u05d4\u05e0\u05d9\u05d5\u05d5\u05d8.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/app.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;router-outlet&gt;&lt;\/router-outlet&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea HttpClientModule \u05dc\u05e7\u05d5\u05d1\u05e5 \u05d4\u05e8\u05d0\u05e9\u05d9.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>src\/app\/app.module.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; highlight: [3,18]; title: ; notranslate\" title=\"\">\nimport { BrowserModule } from &#039;@angular\/platform-browser&#039;;\nimport { NgModule } from &#039;@angular\/core&#039;;\nimport { HttpClientModule } from &#039;@angular\/common\/http&#039;;\n  \nimport { AppRoutingModule } from &#039;.\/app-routing.module&#039;;\nimport { AppComponent } from &#039;.\/app.component&#039;;\n  \nimport { PostModule } from &#039;.\/post\/post.module&#039;;\n  \n@NgModule({\n  declarations: &#x5B;\n    AppComponent\n  ],\n  imports: &#x5B;\n    BrowserModule,\n    AppRoutingModule,\n    PostModule,\n    HttpClientModule\n  ],\n  providers: &#x5B;],\n  bootstrap: &#x5B;AppComponent]\n})\nexport class AppModule { }\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d9\u05d9\u05d1\u05d0 \u05dc\u05de\u05d5\u05d3\u05d5\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05d0\u05ea \u05db\u05dc \u05d4\u05e8\u05db\u05d9\u05d1\u05d9\u05dd \u05e9\u05d4\u05e9\u05ea\u05de\u05e9\u05e0\u05d5 \u05d1\u05d4\u05dd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>products.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { NgModule } from &#039;@angular\/core&#039;;\nimport { CommonModule } from &#039;@angular\/common&#039;;\n  \nimport { PostRoutingModule } from &#039;.\/post-routing.module&#039;;\nimport { IndexComponent } from &#039;.\/index\/index.component&#039;;\nimport { ViewComponent } from &#039;.\/view\/view.component&#039;;\nimport { CreateComponent } from &#039;.\/create\/create.component&#039;;\nimport { EditComponent } from &#039;.\/edit\/edit.component&#039;;\n  \nimport { FormsModule, ReactiveFormsModule } from &#039;@angular\/forms&#039;;\n  \n@NgModule({\n  declarations: &#x5B;IndexComponent, ViewComponent, CreateComponent, EditComponent],\n  imports: &#x5B;\n    CommonModule,\n    PostRoutingModule,\n    FormsModule,\n    ReactiveFormsModule\n  ]\n})\nexport class PostModule { }\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e7\u05e6\u05ea \u05d0\u05e8\u05d5\u05da, \u05d0\u05d1\u05dc \u05de\u05d1\u05d9\u05d0 \u05d0\u05ea \u05db\u05dc \u05d4\u05d3\u05d1\u05e8\u05d9\u05dd \u05d1\u05e6\u05d5\u05e8\u05d4 \u05d1\u05e8\u05d5\u05e8\u05d4 \u05d5\u05e9\u05dc\u05de\u05d4.<a href=\"https:\/\/angular-notebook.netlify.app\/docs\/http\/update%20request\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9 \u05e0\u05d9\u05e6\u05d5\u05e8 \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9. \u05e0\u05ea\u05e7\u05d9\u05df \u05d0\u05ea bootstrap \u05db\u05d3\u05d9 \u05e9\u05d9\u05d4\u05d9\u05d4 \u05e7\u05dc \u05d9\u05d5\u05ea\u05e8 \u05dc\u05e2\u05e6\u05d1 \u05d0\u05ea \u05d4\u05d3\u05e4\u05d9\u05dd. \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05d5\u05dc \u05dc\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d5\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea \u05d9\u05e6\u05d9\u05e8\u05ea routes src\/app\/post\/post-routing.module.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e0\u05d9\u05e6\u05d5\u05e8 interface \u05e9\u05d9\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d4\u05d6\u05d4. src\/app\/post\/post.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05d4-service src\/app\/post\/post.service.ts \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05dc\u05d5\u05d2\u05d9\u05e7\u05d4 \u05d5\u05d4\u05d8\u05de\u05e4\u05dc\u05d8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4 \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05e8\u05d0\u05e9\u05d9 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05db\u05dc \u05e8\u05e9\u05d9\u05de\u05ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[29,37],"tags":[],"class_list":["post-1301","post","type-post","status-publish","format-standard","hentry","category-angular-docs","category-ngdocs-http-client","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/\" \/>\n<meta property=\"og:locale\" content=\"he_IL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook\" \/>\n<meta property=\"og:description\" content=\"\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9 \u05e0\u05d9\u05e6\u05d5\u05e8 \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9. \u05e0\u05ea\u05e7\u05d9\u05df \u05d0\u05ea bootstrap \u05db\u05d3\u05d9 \u05e9\u05d9\u05d4\u05d9\u05d4 \u05e7\u05dc \u05d9\u05d5\u05ea\u05e8 \u05dc\u05e2\u05e6\u05d1 \u05d0\u05ea \u05d4\u05d3\u05e4\u05d9\u05dd. \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05d5\u05dc \u05dc\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d5\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea \u05d9\u05e6\u05d9\u05e8\u05ea routes src\/app\/post\/post-routing.module.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e0\u05d9\u05e6\u05d5\u05e8 interface \u05e9\u05d9\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d4\u05d6\u05d4. src\/app\/post\/post.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05d4-service src\/app\/post\/post.service.ts \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05dc\u05d5\u05d2\u05d9\u05e7\u05d4 \u05d5\u05d4\u05d8\u05de\u05e4\u05dc\u05d8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4 \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05e8\u05d0\u05e9\u05d9 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05db\u05dc \u05e8\u05e9\u05d9\u05de\u05ea [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Notebook\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-22T11:36:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-22T11:39:15+00:00\" \/>\n<meta name=\"author\" content=\"kerendanino\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3\" \/>\n\t<meta name=\"twitter:data1\" content=\"kerendanino\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u05d3\u05e7\u05d5\u05ea\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/\"},\"author\":{\"name\":\"kerendanino\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\"},\"headline\":\"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB\",\"datePublished\":\"2023-09-22T11:36:59+00:00\",\"dateModified\":\"2023-09-22T11:39:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/\"},\"wordCount\":94,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"articleSection\":[\"Angular Documentation\",\"Http Client\"],\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/\",\"name\":\"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\"},\"datePublished\":\"2023-09-22T11:36:59+00:00\",\"dateModified\":\"2023-09-22T11:39:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/#breadcrumb\"},\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/full-db-project\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"name\":\"Code Notebook\",\"description\":\"Easy coding\",\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"he-IL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\",\"name\":\"Code Notebook\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"contentUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"width\":3626,\"height\":1942,\"caption\":\"Code Notebook\"},\"image\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\",\"name\":\"kerendanino\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"caption\":\"kerendanino\"},\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/author\\\/kerendanino\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/","og_locale":"he_IL","og_type":"article","og_title":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook","og_description":"\u05d9\u05e6\u05d9\u05e8\u05ea \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9 \u05e0\u05d9\u05e6\u05d5\u05e8 \u05e4\u05e8\u05d5\u05d9\u05d9\u05e7\u05d8 \u05d7\u05d3\u05e9. \u05e0\u05ea\u05e7\u05d9\u05df \u05d0\u05ea bootstrap \u05db\u05d3\u05d9 \u05e9\u05d9\u05d4\u05d9\u05d4 \u05e7\u05dc \u05d9\u05d5\u05ea\u05e8 \u05dc\u05e2\u05e6\u05d1 \u05d0\u05ea \u05d4\u05d3\u05e4\u05d9\u05dd. \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05d5\u05dc \u05dc\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d5\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea \u05d9\u05e6\u05d9\u05e8\u05ea routes src\/app\/post\/post-routing.module.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05d5\u05d3\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e0\u05d9\u05e6\u05d5\u05e8 interface \u05e9\u05d9\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d4\u05d6\u05d4. src\/app\/post\/post.ts \u05d9\u05e6\u05d9\u05e8\u05ea \u05d4-service src\/app\/post\/post.service.ts \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05dc\u05d5\u05d2\u05d9\u05e7\u05d4 \u05d5\u05d4\u05d8\u05de\u05e4\u05dc\u05d8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4 \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05e8\u05d0\u05e9\u05d9 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05db\u05dc \u05e8\u05e9\u05d9\u05de\u05ea [&hellip;]","og_url":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/","og_site_name":"Code Notebook","article_published_time":"2023-09-22T11:36:59+00:00","article_modified_time":"2023-09-22T11:39:15+00:00","author":"kerendanino","twitter_card":"summary_large_image","twitter_misc":{"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3":"kerendanino","\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da":"2 \u05d3\u05e7\u05d5\u05ea"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/#article","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/"},"author":{"name":"kerendanino","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c"},"headline":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB","datePublished":"2023-09-22T11:36:59+00:00","dateModified":"2023-09-22T11:39:15+00:00","mainEntityOfPage":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/"},"wordCount":94,"commentCount":0,"publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"articleSection":["Angular Documentation","Http Client"],"inLanguage":"he-IL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/","url":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/","name":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB - Code Notebook","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#website"},"datePublished":"2023-09-22T11:36:59+00:00","dateModified":"2023-09-22T11:39:15+00:00","breadcrumb":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/#breadcrumb"},"inLanguage":"he-IL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/epicmarketing.co.il\/notebook\/full-db-project\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/epicmarketing.co.il\/notebook\/"},{"@type":"ListItem","position":2,"name":"\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05dc\u05d0\u05d4 \u05dc\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e2\u05dd DB"}]},{"@type":"WebSite","@id":"https:\/\/epicmarketing.co.il\/notebook\/#website","url":"https:\/\/epicmarketing.co.il\/notebook\/","name":"Code Notebook","description":"Easy coding","publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/epicmarketing.co.il\/notebook\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"he-IL"},{"@type":"Organization","@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization","name":"Code Notebook","url":"https:\/\/epicmarketing.co.il\/notebook\/","logo":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/","url":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","contentUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","width":3626,"height":1942,"caption":"Code Notebook"},"image":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c","name":"kerendanino","image":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","caption":"kerendanino"},"url":"https:\/\/epicmarketing.co.il\/notebook\/author\/kerendanino\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/comments?post=1301"}],"version-history":[{"count":3,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1301\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1301\/revisions\/1304"}],"wp:attachment":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/media?parent=1301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/categories?post=1301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/tags?post=1301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}