Answer the question
In order to leave comments, you need to log in
How to render a component within a component?
There is a component
'use strict';
angular
.module('buzz')
.component('commonHeader', {
templateUrl: "/views/header.html",
controller: function ($scope, globalRatingApiService) {}
.component('leftBlock', {
templateURL: "/views/headerLeft.html",
controller: function () {
console.log('ASD');
}
<common-header></common-header>
<left-block></left-block>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question