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
{ | |
//... | |
"projects": { | |
"Flowmono-Website": { | |
"i18n": { | |
"sourceLocale": "en-US", // Default locale | |
"locales": { | |
"fr": { | |
"translation": "src/locale/messages.fr.xlf" // French translations | |
}, |
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
<trans-unit id="2750522852128717730" datatype="html"> | |
<source>Sign. Automate. Build Processes Fast.</source> | |
<target>Signez. Automatisez. Construisez des processus rapidement.</target> | |
<!-- ... --> | |
</trans-unit> |
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
<source> Sign. Automate. Build Processes Fast. </source> |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | |
<file source-language="en-US" datatype="plaintext" original="ng2.template"> | |
<body> | |
<trans-unit id="2750522852128717730" datatype="html"> | |
<source> Sign. Automate. Build Processes Fast. </source> | |
<context-group purpose="location"> | |
<context context-type="sourcefile">src/app/@components/website/main/main-landing/main-landing.component.html</context> | |
<context context-type="linenumber">10,12</context> | |
</context-group> |
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
<!-- Before --> | |
<p class="flwmn-heading-1 fw-500"> | |
Sign. Automate. Build Processes Fast. | |
</p> | |
<!-- After --> | |
<p i18n class="flwmn-heading-1 fw-500"> | |
Sign. Automate. Build Processes Fast. | |
</p> |
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
// ... | |
export class MemoryLeakComponent implements OnInit, OnDestroy { | |
constructor(private readonly router: Router) {} | |
count = 0; | |
private sub: Subscription | undefined; | |
ngOnInit() { |
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
import { Component } from '@angular/core'; | |
import { Router, RouterOutlet } from '@angular/router'; | |
@Component({ | |
selector: 'app-root', | |
standalone: true, | |
imports: [RouterOutlet], | |
templateUrl: './app.component.html', | |
styleUrl: './app.component.css', | |
}) |
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
<h1>Memory Leak Example</h1> | |
<button (click)="navigate()">Go to Memory Leak Component</button> | |
<router-outlet></router-outlet> |
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
import { Routes } from '@angular/router'; | |
import { MemoryLeakComponent } from './memory-leak.component'; | |
export const routes: Routes = [ | |
{ path: 'memory-leak', component: MemoryLeakComponent }, | |
]; |
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
import { Component, OnInit } from '@angular/core'; | |
import { Router } from '@angular/router'; | |
import { interval } from 'rxjs'; | |
@Component({ | |
selector: 'app-memory-leak', | |
template: `<div> | |
<p>Interval count: {{ count }}</p> | |
<button (click)="goBack()">Go back</button> |
NewerOlder