Saturday, 21 April 2018
template vs templateUrl in angular 2 components.
in: angular
In this article, We will discuss about What is the difference between template and templateUrl in angular 2 Components.
template:-
-------------
1/ template can be used to specify inline markup.
2/ template doesn't provide intellisense and auto-completion.
3/ template can't be reusable.
templateUrl:-
----------------
1/ templateUrl can be used to specify markup with in html file.
2/ templateUrl will provide intellisense and auto-completion.
3/ templateUrl can be reusable across many components.
RELATED POSTS

Difference between Angular and Angular JS?
In this article, We will discuss about What is the difference between An ...

Difference between Interpolation and Property Binding.
In this article, We will discuss about What is the difference betw ...

npm ERR! Unexpected end of JSON input while parsing near
To resolve this error, we need to type the below command, npm cache c ...
-
This issue is Completely related to EntityFramework and this issue arises whenever you have installed EntityFramework in one project at th...
-
This is generally a Common Problem or the error could be like this, To Resolve this error, One Small Solution is Exists which is as b...
-
In this article, We will discuss What is the above Error and How to resolve this Error. Whenever, We are Restoring our database into A...
0 comments:
Post a Comment