Angular2 Bootstrap DatePicker Tutorial

  • Modify this file for moduleResolution, for intellisense and decorator metadata as shown in following code:

    Step 4: In the project, add a new file of the name systemjs.config.js.

  • This file contains the Person class as shown in the following code:

    Step 6: In the app folder, add a new file of the name app.component.ts with the following code:

    The above code contains Angular 2 component of the name AppComponent.

  • This file will contain bootstrap code for the Angular 2 project as shown in the following code:

    This step imports all the required modules for the application to run e.g. DatepickerModule, FormsModule, etc.

  • To run the application, execute the following command from the command prompt

    This command will start the server on 8080 port as shown in the following image:

    Open the browser and enter the following URL in the address bar:

    You should see the following result:

    The datepicker shows the current month because its onlyCurrentMonth property is set.

  • Download the entire source code for the Angular 2 Datepicker Demo

    Conclusion: The Angular 2 bootstrap DatePicker component is a cool UI element for calendar operations based on dates.

This Angular 2 DatePicker tutorial shows how to use the DatePicker UI element from the Angular 2 bootstrap project.
Continue reading “Angular2 Bootstrap DatePicker Tutorial”

A different point of Vue – Rodrigo Juliani – Medium

A different point of Vue  #vuejs #react #angularjs #javascript #vuejs

  • When I started looking about Vue, I felt empowered by how friendly it was to a newcomer like me (mostly thanks to the awesome Guide they provide), how simple it was to define components and whole pages, or integrate them with other frameworks.I’ve been using it for a year already, Vue2 was born during that time only to make things better, and little by little a “Personal project” became my most trusted resource when developing front-end.
  • So free that you can also use any CSS pre-processor you want, although you can directly put SASS code in your components.What about support?Big ones also fall harderYeah, yeah… Angular is backed by Google, React by Facebook… Who backs Vue?
  • A similar situation happens with Vue, since it’s Evan You’s creation, I’m pretty sure he will do amazing things now that he has the support of a team fully committed to Vue.Also… have you realized Vue is Twice as popular as Angular?
  • At the moment of this writing, Angular has 20782 stars in github, Vue has 43557 and React 59955.
  • Every day many sub-frameworks arise (such as the awesome vue-material) and small components to make your life easier, the ecosystem relying on Vue grows as much as products using it.I, for one, will continue mixing it in everything I do while I can, because I consider it the most honest effort to make developers life easier.

Some days ago, at the office, we were discussing which technology/framework should we use in a new project so we could build a really cool front-end. Several ideas were tossed on the table, Angular…
Continue reading “A different point of Vue – Rodrigo Juliani – Medium”


  • My question involves how to go about dealing with complex nesting of templates (also called partials) in an AngularJS application.
  • Here is an example of what’s in my app:

    In circle 2, the template that is loaded into the has an additional sub-navigation.

  • I know that I can include additional templates within the 1st template, but these templates are all going to be pretty complex.
  • I would like to keep all the templates separate in order to make the application easier to update and not have a dependency on the parent template having to be loaded in order to access its children.
  • There is the potential that the sub-navigation templates will have a 2nd sub-navigation that will need to load its own templates as well into the area in circle 4

    How does one go about structuring an AngularJS app to deal with such complex nesting of templates while keeping them all separate from one another?

My question involves how to go about dealing with complex nesting of templates (also called partials) in an AngularJS application.
Continue reading “javascript”


  • i’ve created a small API using Node/Express and trying to pull data using Angularjs but as my html page is running under apache on localhost:8888 and node API is listen on port 3000, i am getting the No ‘Access-Control-Allow-Origin’.
  • I tried using node-http-proxy and Vhosts Apache but not having much succes, please see full error and code below.
  • “XMLHttpRequest cannot load localhost:3000.
  • No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

i’ve created a small API using Node/Express and trying to pull data using Angularjs but as my html page is running under apache on localhost:8888 and node API is listen on port 3000, i am getting the No ‘Access-Control-Allow-Origin’. I tried using node-http-proxy and Vhosts Apache but not having much succes, please see full error and code below.
Continue reading “node.js”

Angular: Angular, version 2: proprioception-reinforcement

  • This release also represents huge improvements to developer productivity with the Angular CLI and styleguide.
  • From the beginning, we built Angular in collaboration with the open source development community.
  • Angular is now ready for the world, and we’re excited for you to join the thousands of developers already building with Angular 2.
  • A few of the things you can expect in the near future from the Angular team:

    Moving Angular to semantic versioning ensures rapid access to the newest features for our component and tooling ecosystem, while preserving a consistent and reliable development environment for production applications that depend on stability between major releases, but still benefit from bug fixes and new APIs.

  • Chirayu Krishnappa, Christian Weyer, Christoph Burgdorf, Christoph Guttandin, Christoph Hoeller, Christoffer Noring, Chuck Jazdzewski, Cindy, Ciro Nunes, Codebacca, Cody Lundquist, Cody-Nicholson, Cole R Lawrence, Constantin Gavrilete, Cory Bateman, Craig Doremus, crisbeto, Cuel, Cyril Balit, Cyrille Tuzi, Damien Cassan, Dan Grove, Dan Wahlin, Daniel Leib, Daniel Rasmuson, dapperAuteur, Daria Jung, David East, David Fuka, David Reher, David-Emmanuel Divernois, Davy Engone, Deborah Kurata, Derek Van Dyke, DevVersion, Dima Kuzmich, Dimitrios Loukadakis, Dmitriy Shekhovtsov, Dmitry Patsura, Dmitry Zamula, Dmytro Kulyk, Donald Spencer, Douglas Duteil, dozingcat, Drew Moore, Dylan Johnson, Edd Hannay, Edouard Coissy, eggers, elimach, Elliott Davis, Eric Jimenez, Eric Lee Carraway, Eric Martinez, Eric Mendes Dantas, Eric Tsang, Essam Al Joubori, Evan Martin, Fabian Raetz, Fahimnur Alam, Fatima Remtullah, Federico Caselli, Felipe Batista, Felix Itzenplitz, Felix Yan, Filip Bruun, Filipe Silva, Flavio Corpa, Florian Knop, Foxandxss, Gabe Johnson, Gabe Scholz, GabrielBico, Gautam krishna.R, Georgii Dolzhykov, Georgios Kalpakas, Gerd Jungbluth, Gerard Sans, Gion Kunz, Gonzalo Ruiz de Villa, Grégory Bataille, Günter Zöchbauer, Hank Duan, Hannah Howard, Hans Larsen, Harry Terkelsen, Harry Wolff, Henrique Limas, Henry Wong, Hiroto Fukui, Hongbo Miao, Huston Hedinger, Ian Riley, Idir Ouhab Meskine, Igor Minar, Ioannis Pinakoulakis, The Ionic Team, Isaac Park, Istvan Novak, Itay Radotzki, Ivan Gabriele, Ivey Padgett, Ivo Gabe de Wolff, J. Andrew Brassington, Jack Franklin, Jacob Eggers, Jacob MacDonald, Jacob Richman, Jake Garelick, James Blacklock, James Ward, Jason Choi, Jason Kurian, Jason Teplitz, Javier Ros, Jay Kan, Jay Phelps, Jay Traband, Jeff Cross, Jeff Whelpley, Jennifer Bland, jennyraj, Jeremy Attali, Jeremy Elbourn, Jeremy Wilken, Jerome Velociter, Jesper Rønn-Jensen, Jesse Palmer, Jesús Rodríguez, Jesús Rodríguez, Jimmy Gong, Joe Eames, Joel Brewer, John Arstingstall, John Jelinek IV, John Lindquist, John Papa, John-David Dalton, Jonathan Miles, Joost de Vries, Jorge Cruz, Josef Meier, Josh Brown, Josh Gerdes, Josh Kurz, Josh Olson, Josh Thomas, Joseph Perrott, Joshua Otis, Josu Guiterrez, Julian Motz, Julie Ralph, Jules Kremer, Justin DuJardin, Kai Ruhnau, Kapunahele Wong, Kara Erickson, Kathy Walrath, Keerti Parthasarathy, Kenneth Hahn, Kevin Huang, Kevin Kirsche, Kevin Merckx, Kevin Moore, Kevin Western, Konstantin Shcheglov, Kurt Hong, Levente Morva, laiso, Lina Lu, LongYinan, Lucas Mirelmann, Luka Pejovic, Lukas Ruebbelke, Marc Fisher, Marc Laval, Marcel Good, Marcy Sutton, Marcus Krahl, Marek Buko, Mark Ethan Trostler, Martin Gontovnikas, Martin Probst, Martin Staffa, Matan Lurey, Mathias Raacke, Matias Niemelä, Matt Follett, Matt Greenland, Matt Wheatley, Matteo Suppo, Matthew Hill, Matthew Schranz, Matthew Windwer, Max Sills, Maxim Salnikov, Melinda Sarnicki Bernardo, Michael Giambalvo, Michael Goderbauer, Michael Mrowetz, Michael-Rainabba Richardson, Michał Gołębiowski, Mikael Morlund, Mike Ryan, Minko Gechev, Miško Hevery, Mohamed Hegazy, Nan Schweiger, Naomi Black, Nathan Walker, The NativeScript Team, Nicholas Hydock, Nick Mann, Nick Raphael, Nick Van Dyck, Ning Xia, Olivier Chafik, Olivier Combe, Oto Dočkal, Pablo Villoslada Puigcerber, Pascal Precht, Patrice Chalin, Patrick Stapleton, Paul Gschwendtner, Pawel Kozlowski, Pengfei Yang, Pete Bacon Darwin, Pete Boere, Pete Mertz, Philip Harrison, Phillip Alexander, Phong Huynh, Polvista, Pouja, Pouria Alimirzaei, Prakal, Prayag Verma, Rado Kirov, Raul Jimenez, Razvan Moraru, Rene Weber, Rex Ye, Richard Harrington, Richard Kho, Richard Sentino, Rob Eisenberg, Rob Richardson, Rob Wormald, Robert Ferentz, Robert Messerle, Roberto Simonetti, Rodolfo Yabut, Sam Herrmann, Sam Julien, Sam Lin, Sam Rawlins, Sammy Jelin, Sander Elias, Scott Hatcher, Scott Hyndman, Scott Little, ScottSWu, Sebastian Hillig, Sebastian Müller, Sebastián Duque, Sekib Omazic, Shahar Talmi, Shai Reznik, Sharon DiOrio, Shannon Ayres, Shefali Sinha, Shlomi Assaf, Shuhei Kagawa, Sigmund Cherem, Simon Hürlimann (CyT), Simon Ramsay, Stacy Gay, Stephen Adams, Stephen Fluin, Steve Mao, Steve Schmitt, Suguru Inatomi, Tamas Csaba, Ted Sander, Tero Parviainen, Thierry Chatel, Thierry Templier, Thomas Burleson, Thomas Henley, Tim Blasi, Tim Ruffles, Timur Meyster, Tobias Bosch, Tony Childs, Tom Ingebretsen, Tom Schoener, Tommy Odom, Torgeir Helgevold, Travis Kaufman, Trotyl Yu, Tycho Grouwstra, The Typescript Team, Uli Köhler, Uri Shaked, Utsav Shah, Valter Júnior, Vamsi V, Vamsi Varikuti, Vanga Sasidhar, Veikko Karsikko, Victor Berchet, Victor Mejia, Victor Savkin, Vinci Rufus, Vijay Menon, Vikram Subramanian, Vivek Ghaisas, Vladislav Zarakovsky, Vojta Jina, Ward Bell, Wassim Chegham, Wenqian Guo, Wesley Cho, Will Ngo, William Johnson, William Welling, Wilson Mendes Neto, Wojciech Kwiatek, Yang Lin, Yegor Jbanov, Zach Bjornson, Zhicheng Wang, and many more…

    With gratitude and appreciation, and anticipation to see what you’ll build next, welcome to the next stage of Angular.

Continue reading “Angular: Angular, version 2: proprioception-reinforcement”

Journal: How to embed Vue.js & Vuex inside an AngularJS app… wait what?

  • With Vuex, a new possibility presented itself—what if I built time-tracking as a Vue app within Cushion?
  • Vue’s view model instance is incredibly lightweight and performant, so when a user switches to the time-tracking tab, Cushion can mount the instance and make any requests to the API from Vuex.
  • Now, I can reference the Vue app’s state across the rest of Cushion and inject it into any Vue instance by simply specifying the store.
  • On top of that, this opens up a way for me to migrate Cushion from Angular to Vue in steps, rather than rewriting the entire app all at once.
  • I could rewrite the Angular controllers as Vue instances, and simply create new store modules in Vuex.

Since launching Cushion a couple years ago, we’ve been using AngularJS (1.x) as our front-end framework. If you’re curious how we ended up with Angular, I wrote about the decision (keep in mind this was 2014). I came from an MVCS background, so Angular really resonated with me, and it has served us well this entire time. Recently, however, with our improvements to the scheduling graph, we reached a point where performance has become an issue.
Continue reading “Journal: How to embed Vue.js & Vuex inside an AngularJS app… wait what?”