diff --git a/src/app/automatization/automatization.component.html b/src/app/automatization/automatization.component.html index 198a6b9..1a71d2d 100644 --- a/src/app/automatization/automatization.component.html +++ b/src/app/automatization/automatization.component.html @@ -14,10 +14,10 @@
- О продукте - Преимущества - Решения - Обратная связь + О продукте + Преимущества + Решения + Обратная связь
diff --git a/src/app/automatization/automatization.component.ts b/src/app/automatization/automatization.component.ts index e901e19..087becf 100644 --- a/src/app/automatization/automatization.component.ts +++ b/src/app/automatization/automatization.component.ts @@ -16,20 +16,10 @@ import { ImgCaruselComponent } from '../img-carusel/img-carusel.component'; export class AutomatizationComponent { constructor( private router:Router, private seo:SEOService - ){} + ){} - anchor?:string; - - anchorRouting(anchor:string){ - if(anchor==this.anchor){ - this.router.navigate([`/automatization`]).then( - ()=>this.router.navigate([`/automatization`], { fragment: anchor }) - ) - }else{ - this.anchor = anchor; - console.log(anchor) - this.router.navigateByUrl(`/automatization#${anchor}`) - } + anchorRouting(anchor:string){ + this.router.navigate([`/automatization`],{ fragment: anchor }) } images = [ diff --git a/src/app/development/development.component.html b/src/app/development/development.component.html index 1861b47..d51e85a 100644 --- a/src/app/development/development.component.html +++ b/src/app/development/development.component.html @@ -14,9 +14,9 @@
- О продукте - Преимущества - Обратная связь + О продукте + Преимущества + Обратная связь
diff --git a/src/app/development/development.component.ts b/src/app/development/development.component.ts index 9abed42..4809d25 100644 --- a/src/app/development/development.component.ts +++ b/src/app/development/development.component.ts @@ -23,18 +23,9 @@ export class DevelopmentComponent { this.seo.updateDescription('Разработка ПО любой сложности под любые задачи. Помогаем автоматизировать бизнес-процессы, избавляем от рутинных задач, находим новые решения.'); this.seo.updateImage('assets/img/development.jpg') } - - anchor?:string; - anchorRouting(anchor:string){ - if(anchor==this.anchor){ - this.router.navigate([`/development`]).then( - ()=>this.router.navigate([`/development`], { fragment: anchor }) - ) - }else{ - this.anchor = anchor; - this.router.navigate([`/development`], { fragment: anchor }) - } + anchorRouting(anchor:string){ + this.router.navigate([`/development`],{ fragment: anchor }) } images = [ diff --git a/src/app/sites/sites.component.html b/src/app/sites/sites.component.html index c647dbd..d86e282 100644 --- a/src/app/sites/sites.component.html +++ b/src/app/sites/sites.component.html @@ -14,10 +14,10 @@
- О продукте - Особенности - Функционал - Обратная связь + О продукте + Особенности + Функционал + Обратная связь
diff --git a/src/app/sites/sites.component.ts b/src/app/sites/sites.component.ts index 4f84db2..f4c476c 100644 --- a/src/app/sites/sites.component.ts +++ b/src/app/sites/sites.component.ts @@ -18,17 +18,8 @@ export class SitesComponent { private router:Router, private seo:SEOService ){}; - anchor?:string; - anchorRouting(anchor:string){ - if(anchor==this.anchor){ - this.router.navigate([`/sites`]).then( - ()=>this.router.navigate([`/sites`], { fragment: anchor }) - ) - }else{ - this.anchor = anchor; - this.router.navigate([`/sites`], { fragment: anchor }) - } + this.router.navigate([`/sites`],{ fragment: anchor }) } images = [