Admin
Mar 24, 2017
8 comments
380
Follow these steps to create an Angular JS 2 project using Angular CLI.   Install Angular CLI on your machine  npm install -g angular-cli If that doesn't work, install npm install -g @angular/cli   Create a new project using ng command:...
Snippet
Creating Angular2 Project using Angular CLI
Admin
Feb 27, 2017
16 comments
193
  A workaround for ng-change in angular js which does not catch file input change event.   view.html: <input type="file" custom-on-change="uploadFile"> controller.js: app.controller('myCtrl', function($scope){ $scope.uploadFile = func...
Snippet
File change event using custom angular directive
Admin
Sep 02, 2016
15 comments
564
The solution doesn’t require writing a specific directive or adding any additional attributes or decoration to my page content -  a short timeout (like, 1ms short) inside of which Prism.highlightElement(elem) is called. // Content is my service, ...
Snippet
Using PrismJs syntax highlighting with AngularJs