Posts

Showing posts from February, 2017

Can not find name Promise , Set , Map, Mapconstructor , Setconstructor or Iterator in angular 2.

Image
                                                            Angular 2   Can not find name Promise , Set , Map, Mapconstructor , Setconstructor or Iterator in angular 2.     It is a frequent error that we get when we tried to compile the Angular 2 application . These above issues are raised due to so many factors.  But in my case it was just happened due to tsconfig.json file configuration settings.  Basically our common tsconfig,json file contains the following properties like {   "compilerOptions": {     "target": "es5",     "module": "system",     "moduleResolution": "node",     "sourceMap": true,     "experimentalDecorators": true,     "removeComments": false,     "noImplicitAny": false   },   "exclude"...

TS1219 Experimental support for decorators is a feature that is subject to change in a future release

Image
                                  Angular 2 When we compile the  angular 2 application , most of the time we got the following error like Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. As we know ,when we  run the Angular 2 application , the typescript compiler 'tsc' get called to execute the typescript(.ts) file. We configure the tsconfig.json file to configure the tsc compiler . Generally the settings of the tsconfig.json file is   {   "compilerOptions": {     "target": "es6",     "module": "system",     "moduleResolution": "node",     "sourceMap": true,     "removeComments": false,     "noImplicitAny": false   },   "exclude": [     "node_modules",   ...

DROP IF EXITS in SQL server 2016

Before SQL server 2016 released , when we want drop any objects , we should first check the object is exists or not otherwise it will return a error. NOTE : In this case we are considering a Database whose name is "SQLSMARTDB" .   And taking one table whose name is "SQLSmartTable" for future reference.     DROP TABLE [ SQLSmartTable ] If the object is not found it will give an error like : Msg 3701, Level 11, State 5, Line 14 Cannot drop the table ' SQLSmartTable ', because it does not exist or you do not have permission.      OR  we can check the object existence in different ways like IF EXISTS(SELECT 'Y' FROM sys.objects AS O WHERE O.name = 'SQLSmartTable AND O.[type] = 'U')     DROP TABLE [SQLSmartTable] --OR IF OBJECT_ID('dbo.SQLSmartTable','U') IS NOT NULL     DROP TABLE [SQLSmartTable] But in SQL server 2016 we can handle this situation in different way , with the help of DR...