Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Target implementation with Angular2 does not work

Avatar

Avatar
Contributor
Level 3
KRAZ
Level 3

Likes

22 likes

Total Posts

36 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Validate 10
Validate 1
Shape 1
Give Back
View profile

Avatar
Contributor
Level 3
KRAZ
Level 3

Likes

22 likes

Total Posts

36 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Validate 10
Validate 1
Shape 1
Give Back
View profile
KRAZ
Level 3

02-08-2017

Hi,

We have huge problems with the Target implementation since we updated from AngularJS to Angular2. Currently we are using Angular 4.1.3 and we implemented Target with the at.js (v 1.0.0) over DTM as a tool.

In one of 5 cases it loads fine but during most of the cases at.js applies all changes from Target during the page load, Adobe Debugger shows the manipulation as successful, but after that the css file loads and overwrites the changes of Target again. Css file is included in the header of the pre-rendered html page.

We have a Single Page Application but in all the examples the integration was always with Angular JS. I cannot implement the extensions like ngRoute because the module does not exist anymore in Angular2.

We've also tried out to include at.js as page load rule on page top and bottom, with the same effect.

The behaviour is depending on the browser, while firefox works best it usually never works in IE.

Any ideas on how we can change the implementation to get it work?

Thanks!

Konstantin

View Entire Topic

Avatar

Avatar
Boost 5
Employee
arturc85303583
Employee

Likes

12 likes

Total Posts

13 posts

Correct Reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Employee
arturc85303583
Employee

Likes

12 likes

Total Posts

13 posts

Correct Reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
arturc85303583
Employee

02-02-2018

KRAZ​, we have an Angular 2/4/5 specific module that you can use as an inspiration. The Angular module can be found here: target-atjs-extensions/angular2/module at master · Adobe-Marketing-Cloud/target-atjs-extensions · Gi.... You can open GitHub issues if you have specific questions related to Angular module.

Also you should be aware that Angular module will work only with Form Based Composer.