aem

Dynamically load HTML template in angular2

杀马特。学长 韩版系。学妹 提交于 2019-11-26 21:59:03
I have created a project using angular-cli which contains AppComponent as follows: import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app works!'; } And app.component.html as <h1> Good Morning, {{title}} </h1> So when I build it with ng build it generates some files like this ./dist/main.bundle.js which contents some code as follows- /* 586 */ /***/ function(module, exports) { module.exports = "<h1>\n Good Morning, {{title}}\n</h1>\n" /***/ }, /* 587 */

Dynamically load HTML template in angular2

社会主义新天地 提交于 2019-11-26 09:07:57
问题 I have created a project using angular-cli which contains AppComponent as follows: import { Component } from \'@angular/core\'; @Component({ selector: \'app-root\', templateUrl: \'./app.component.html\', styleUrls: [\'./app.component.css\'] }) export class AppComponent { title = \'app works!\'; } And app.component.html as <h1> Good Morning, {{title}} </h1> So when I build it with ng build it generates some files like this ./dist/main.bundle.js which contents some code as follows- /* 586 */ /*

ResourceResolverFactory getServiceResourceResolver throws Exception in AEM 6.1

自古美人都是妖i 提交于 2019-11-26 08:27:48
问题 I want to write some data to AEM, and the below code works fine for me in AEM 6.0 but not in AEM 6.1 , always throws a Login Exception as follows: \" Login Exception when obtaining a CRX User for the Service:\'writeService\'.org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle group.tti.commons-service [395] and sub service writeService \" OSGI Config: Code in my class: import javax.jcr.Session; import org.apache.sling.api.resource.ResourceResolver; import org