|
|
@ -1,4 +1,4 @@ |
|
|
import { Injectable, Injector } from '@angular/core'; |
|
|
import { Injectable } from '@angular/core'; |
|
|
import { ContentStrategy } from '../strategies/content.strategy'; |
|
|
import { ContentStrategy } from '../strategies/content.strategy'; |
|
|
import { generateHash } from '../utils'; |
|
|
import { generateHash } from '../utils'; |
|
|
|
|
|
|
|
|
@ -6,8 +6,6 @@ import { generateHash } from '../utils'; |
|
|
export class DomInsertionService { |
|
|
export class DomInsertionService { |
|
|
readonly inserted = new Set<number>(); |
|
|
readonly inserted = new Set<number>(); |
|
|
|
|
|
|
|
|
constructor(private injector: Injector) {} |
|
|
|
|
|
|
|
|
|
|
|
insertContent(contentStrategy: ContentStrategy) { |
|
|
insertContent(contentStrategy: ContentStrategy) { |
|
|
const hash = generateHash(contentStrategy.content); |
|
|
const hash = generateHash(contentStrategy.content); |
|
|
|
|
|
|
|
|
|