JSF and AngularJS phrases ng-view

I am inside my own view.xthml, which has a component facelets. How:

<ui:composition template="/layout.xhtml"> .. whatever

There I try to integrate AngualerJSby putting ng-view, for example:

   <div ng-view> </div>

When mine /view.jsfis rendering, I got a server side error:

Attribute name "ng-view" associated with an element type "div" must be followed by the ' = ' character.

So, it checks mine html, which prevents angular from starting ng-view.

The question arises: how to integrate angularjsit ng-viewwith jsf/faceletsbased on my case?

+4
source share
2 answers

Facelets - XML, XHTML HTML. XML .

, ng-view="true" ng-view="ng-view" , checked="checked" selected="selected".

<div ng-view="true">
+5
<div ng-view = "">

, ( jsf).

+1

Source: https://habr.com/ru/post/1523582/


All Articles